REFACTOR: Split into modules (controller, models, and utils)

This commit is contained in:
2025-03-15 22:50:22 +01:00
parent 37e88f063e
commit 19934aa911
12 changed files with 34 additions and 38 deletions

12
utils/json_object.py Normal file
View File

@@ -0,0 +1,12 @@
import json
class JSONObject:
def __init__(self, path):
self.path = path
def read(self):
with open(self.path, "r") as f:
return json.load(f)
def get(self, key):
return self.read()[key]