Commit 2bab6167 authored by Mario Chirinos's avatar Mario Chirinos

update.sh

parent 00e20158
......@@ -58,10 +58,10 @@ class Command(BaseCommand):
os.chdir(curentdir)
publisher = Publisher.objects.all().filter(shortName=p)
print(os.getcwd())
if publisher.count()<=0 and os.path.isfile(curentdir+"settings.json") :
if publisher.count()<=0 and os.path.isfile("settings.json") :
print(p, "do not exsist, crating publisher")
with open(curentdir+'settings.json"', 'r') as f:
with open('settings.json', 'r') as f:
cfgfile = json.load(f)
newPublisher = Publisher()
newPublisher.shortName=p
......
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