Skip to content

Commit

Permalink
Fix bug in writing stats to google sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
peteb206 authored Mar 19, 2024
1 parent 3e422bd commit bd68c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrape.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ def stats():
player.add_stats(stats_page)
if player.id != '':
# Update player stats
stat_values = list(player.to_dict().values())[15:]
stat_values = list(player.to_dict().values())[14:]
players_worksheet.update(f'J{i + 2}:AH{i + 2}', [[player.id] + stat_values])
except Exception as e:
cbn_utils.log(f'ERROR: Player.add_stats - {stats_url} - {str(e)}')
Expand Down Expand Up @@ -321,4 +321,4 @@ def positions():

# stats()

# positions()
# positions()

0 comments on commit bd68c28

Please sign in to comment.