Added backup to GTAwhatToBuy.py
This commit is contained in:
@@ -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":
|
||||||
|
|||||||
Reference in New Issue
Block a user