Commit 61d55639 authored by Mario Chirinos's avatar Mario Chirinos

update.sh

parent b11a2d1d
......@@ -54,8 +54,7 @@ class Command(BaseCommand):
publisherList = [ i for i in os.listdir(options['basedir'][0]) if os.path.isdir(i) ]
for p in publisherList:
print (p)
os.chdir(options['basedir'][0])
os.chdir(p)
os.chdir(options['basedir'][0]+"/"+p+"/")
publisher = Publisher.objects.all().filter(shortName=p)
print(os.getcwd())
if publisher.count()<=0 and os.path.isfile("settings.json") :
......
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