rafaldembski commited on
Commit
3d3abb6
·
verified ·
1 Parent(s): 2c03919

Update utils/functions.py

Browse files
Files changed (1) hide show
  1. 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):