Added backup to GTAwhatToBuy.py
This commit is contained in:
1 parent
f9d511f3d6
commit
da7e4df9d5
1 file changed
+1
-1
@@ -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