Commit 00e20158 authored by Mario Chirinos's avatar Mario Chirinos

update.sh

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