Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TineClaeys committed Sep 27, 2024
1 parent 14deeaf commit 9cb8903
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Home.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ def load_data():
try:
with gzip.open(file_path, "rb") as f:
try:
file_data = json.load(f)
json_bytes = f.read()
json_str = json_bytes.decode('utf-8')
file_data = json.loads(json_str)
filename_key = filename.replace(".json.gz", "")
data[filename_key] = file_data
except json.JSONDecodeError:
Expand Down

0 comments on commit 9cb8903

Please sign in to comment.