From bd68c28bf16b69c8da71bbb31a3f2868fff471be Mon Sep 17 00:00:00 2001 From: Pete Berryman <70476220+peteb206@users.noreply.github.com> Date: Mon, 18 Mar 2024 18:55:05 -0700 Subject: [PATCH] Fix bug in writing stats to google sheet --- scrape.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scrape.py b/scrape.py index 1220942..f78f166 100644 --- a/scrape.py +++ b/scrape.py @@ -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)}') @@ -321,4 +321,4 @@ def positions(): # stats() -# positions() \ No newline at end of file +# positions()