Commit 9cbffcde authored by Mario Chirinos's avatar Mario Chirinos

update.sh

parent 2d70c180
...@@ -56,8 +56,9 @@ class Command(BaseCommand): ...@@ -56,8 +56,9 @@ class Command(BaseCommand):
print (p) print (p)
os.chdir(options['basedir'][0]) os.chdir(options['basedir'][0])
os.chdir(p) os.chdir(p)
publisher = Publisher.objects.all().filter(shortName=p) publisher = Publisher.objects.all().filter(shortName=p)
if publisher.count()<=0 and os.path.isfile(p+"/settings.json") : print(publisher.count())
if publisher.count()<=0 and os.path.isfile("settings.json") :
# newPublisher = Publisher() # newPublisher = Publisher()
# newPublisher.shortName=p # newPublisher.shortName=p
print(publisher, "do not exsist") print(publisher, "do not exsist")
......
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