Spaces:
Running
Running
Update utils/functions.py
Browse files- utils/functions.py +1 -1
utils/functions.py
CHANGED
@@ -296,7 +296,7 @@ def add_to_history(message, phone_number, analysis, risk, recommendations):
|
|
296 |
def get_history():
|
297 |
history_file = 'history.json'
|
298 |
try:
|
299 |
-
with open(history_file, 'r') as f
|
300 |
history = json.load(f)
|
301 |
return history
|
302 |
except (json.JSONDecodeError, FileNotFoundError):
|
|
|
296 |
def get_history():
|
297 |
history_file = 'history.json'
|
298 |
try:
|
299 |
+
with open(history_file, 'r') as f: # Usunięto zbędny nawias zamykający
|
300 |
history = json.load(f)
|
301 |
return history
|
302 |
except (json.JSONDecodeError, FileNotFoundError):
|