Skip to content

Commit

Permalink
So let's try to replace this everywhere
Browse files Browse the repository at this point in the history
pretty sure some confusion or loads vs dumps..
  • Loading branch information
martbhell committed Nov 29, 2023
1 parent 9e4b05a commit 759bb4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def get_schedule():

logging.info(f"Using filename {filename}")

content = json.loads(read_file(filename))
content = json.loads(str(read_file(filename)).replace("'", '"'))
resp = make_response(json.dumps(content, indent=2))
resp.headers["Content-Type"] = "application/json"
return resp
Expand Down Expand Up @@ -702,7 +702,7 @@ def import_lazily(module_name):
# In case there is no schedule stored for the backend, try to make it
logging.info("Viewing Root but no schedule found, let's try to parse and store it")
update_schedule()
THESCHEDULE = json.loads(read_file(FILENAME))["teamdates"]
THESCHEDULE = json.loads(str(read_file(FILENAME)).replace("'", '"'))["teamdates"]
##

NOW = datetime.now()
Expand Down

0 comments on commit 759bb4f

Please sign in to comment.