Commit eed11c88 authored by M.S.M.Perera's avatar M.S.M.Perera

Edited jason file creation

parent cc31b869
......@@ -276,16 +276,17 @@ def PdfBreaker(gz_url):
if not lastExRun == None:
arrangeDictionary(listRuns, lastExRun, listTopics,
listDescriptions, counter, dt, department, gnum, exType, firstRun, pubDate) # send date as well
else:
dictTD = dt
json_object = json.dumps(dictTD, indent=4)
if exType == 0:
jsonFileName = 'gz-p-' + \
if exType == 1:
jsonFileName = 'gz-e-' + \
str(gnum) + ".json"
with open('dumps/'+jsonFileName, "w") as outfile:
json.dump(dictTD, outfile)
elif exType == 1:
jsonFileName = 'gz-e-' + \
elif exType == 0:
jsonFileName = 'gz-p-' + \
str(gnum) + ".json"
with open('dumps/'+jsonFileName, "w") as outfile:
json.dump(dictTD, outfile)
......
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