Multiple small fixes

This commit is contained in:
Remy Moll
2021-01-15 22:15:05 +01:00
parent 5b5bb4b30c
commit 3b2170cf3d
6 changed files with 26 additions and 28 deletions

View File

@@ -32,7 +32,7 @@ class PersistentDict(dict):
def __setitem__(self, key, value):
if self.last_action != "r":
self.read_dict()
# not sure if the step to read is necessary, but I'll keep it for safety
super().__setitem__(key,value)
self.write_dict() # writes 'self' to a json file.