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

update.sh

parent 2d70c180
......@@ -57,7 +57,8 @@ class Command(BaseCommand):
os.chdir(options['basedir'][0])
os.chdir(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.shortName=p
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