Added backup to GTAwhatToBuy.py

This commit is contained in:
BarsTiger
2021-08-14 21:56:21 +03:00
parent f9d511f3d6
commit da7e4df9d5

View File

@@ -151,7 +151,7 @@ while True:
specif.append(int(input("Type here price of item (without spaces or comas): "))) specif.append(int(input("Type here price of item (without spaces or comas): ")))
database[nameofnewitem] = specif database[nameofnewitem] = specif
basewrite = open('whattobuy.database', 'w+') basewrite = open('whattobuy.database', 'w+')
json.dump(database, basewrite, indent=3) json.dump(database, basewrite, indent=3, ensure_ascii=False)
basewrite.close() basewrite.close()
elif doing == "7": elif doing == "7":