Fixed patch.py

This commit is contained in:
cyian-1756 2018-06-23 18:52:31 -04:00
parent 8aebc3671d
commit 54cc6661f1

View File

@ -30,9 +30,8 @@ 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:
new_cl = ripmeJson["changeList"].insert(0, message)
ripmeJson["changeList"] = new_cl
print(ripmeJson["changeList"]) print(ripmeJson["changeList"])
ripmeJson["changeList"].insert(0, message)
json.dump(ripmeJson, dataFile, indent=4) json.dump(ripmeJson, dataFile, indent=4)