Skip to content

Commit

Permalink
missing part of code
Browse files Browse the repository at this point in the history
  • Loading branch information
Lypsilonx committed Feb 25, 2024
1 parent 46e4b0b commit 6024924
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 6024924

Please sign in to comment.