From 7149d9f39dfe66e569a4c6724459068da6e9fb61 Mon Sep 17 00:00:00 2001 From: Lynne Date: Fri, 21 Aug 2020 20:35:53 +1000 Subject: [PATCH] had a warm cup of java --- settings.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/settings.py b/settings.py index e2192f6..163cf60 100644 --- a/settings.py +++ b/settings.py @@ -21,3 +21,9 @@ class BuypeebSettings: self.s = json.load(open(self.location + "config.json", 'r')) except: print("Couldn't load settings - using defaults") + + def get(self, setting: str): # javalicious + return self.s.get(setting, None) + + def set(self, setting: str, value): + self.s['setting'] = value