Sync after going through all the keys

This commit is contained in:
jimmy 2025-06-02 00:32:43 +12:00
parent 3d0078f118
commit c15f9787a7
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,6 @@ class Settings(dict):
self.save()
def set_settings(self, raw_json, patterns):
patterns.sync()
try:
data = json.loads(raw_json)
print(data)
@ -80,6 +79,7 @@ class Settings(dict):
else:
return "Invalid key", 400
self[key] = value
patterns.sync()
self.save()
return "OK", 200
except (KeyError, ValueError):