From 6024924a95c2fcf493fd71d69b45a8f7caf38e8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lyx=20Rothbo=CC=88ck?= Date: Sun, 25 Feb 2024 18:48:05 +0100 Subject: [PATCH] missing part of code --- config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.py b/config.py index a7dad98..7c154d0 100644 --- a/config.py +++ b/config.py @@ -49,6 +49,11 @@ def set_settings(setting, value): with open('settings.json', 'r') as f: + settings = json.load(f) + + settings[setting] = value + + with open('settings.json', 'w') as f: json.dump(settings, f, indent=4) def get_settings(setting):