Commit a80d1ea7 authored by Mario Chirinos's avatar Mario Chirinos

bulk upload

parent 5beb5445
......@@ -31,11 +31,10 @@ class Command(BaseCommand):
print (p)
curentdir = options['basedir'][0]+p+"/"
os.chdir(curentdir)
# publisher = Publisher.objects.all().filter(shortName=p)
publisher = Publisher.objects.get(shortName=p)
publisher = Publisher.objects.all().filter(shortName=p)
# publisher = Publisher.objects.filter(shortName=p).getFir
print(os.getcwd())
# if publisher.count()<=0:
if publisher.count() is None:
if publisher.count()<=0:
if os.path.isfile("settings.json") :
print(p, "do not exsist, crating publisher")
with open('settings.json', 'r') as f:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment