BraydenMoore commited on
Commit
1e0e5d4
1 Parent(s): 7a9bbd4

Looking for bug

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -57,7 +57,7 @@ def get_games():
57
  if requested_week and requested_week != current_week:
58
  print("Requested Week:", requested_week)
59
  # Check if that week's games are cached
60
- if session.get(f'games_week_{requested_week}'):
61
  print("Using cached games")
62
  print(session.get(f'games_week_{requested_week}'))
63
  games = session.get(f'games_week_{requested_week}')
 
57
  if requested_week and requested_week != current_week:
58
  print("Requested Week:", requested_week)
59
  # Check if that week's games are cached
60
+ if type(session.get(f'games_week_{requested_week}')) == list:
61
  print("Using cached games")
62
  print(session.get(f'games_week_{requested_week}'))
63
  games = session.get(f'games_week_{requested_week}')