Fixed patch.py

This commit is contained in:
cyian-1756 2018-06-23 18:50:46 -04:00
parent a5ba72df33
commit 8aebc3671d

View File

@ -30,8 +30,9 @@ def update_hash(current_hash):
def update_change_list(message): def update_change_list(message):
ripmeJson = get_ripme_json() ripmeJson = get_ripme_json()
with open('ripme.json', 'w') as dataFile: with open('ripme.json', 'w') as dataFile:
ripmeJson["changeList"] = ripmeJson["changeList"].insert(0, message) new_cl = ripmeJson["changeList"].insert(0, message)
print(ripmeJson["currentHash"]) ripmeJson["changeList"] = new_cl
print(ripmeJson["changeList"])
json.dump(ripmeJson, dataFile, indent=4) json.dump(ripmeJson, dataFile, indent=4)