Browse Source

Fix final row

bryan 1 year ago
parent
commit
6f17034c69
1 changed files with 3 additions and 3 deletions
  1. 3 3
      nba_playoffs_game_updater.py

+ 3 - 3
nba_playoffs_game_updater.py

@@ -164,7 +164,7 @@ Also, append misspelled players to batch_update_list to autofix on next push if
 def cleanPlayers(all_values, first_row, last_row, batch_update_list):
     players_unique = []
     for row_num, row in enumerate(all_values, start=1):
-        if first_row <= row_num < last_row:
+        if first_row <= row_num <= last_row:
             player = row[2]
             if player[-7:] != "-FIX!!!" and player != "":
                 if len(players.find_players_by_full_name(player)) > 0:
@@ -290,8 +290,8 @@ def batchUpdate(batch_update_list):
     if len(batch_update_list) > 1:
         worksheet.batch_update(batch_update_list, value_input_option="USER_ENTERED")
     else:
-        print('No update needed')
-        time.sleep(30)
+        print('No update needed, sleeping for 1 minute')
+        time.sleep(60)
 
 
 if __name__ == "__main__":