Browse Source

Remove bad break

cryobry 5 years ago
parent
commit
23c5a8d46a
1 changed files with 2 additions and 3 deletions
  1. 2 3
      nba_playoffs_game_updater.py

+ 2 - 3
nba_playoffs_game_updater.py

@@ -14,7 +14,7 @@ import timeout_decorator
 _spreadsheetKey = "12Zv95ZMJ008KXC5ytVnBusjX9wUnpOg0TOLwmxMNOTQ"
 
 
-def _getStatsSheet(_key):
+def _getSheets(_key):
   scope = ['https://spreadsheets.google.com/feeds',
            'https://www.googleapis.com/auth/drive']
 
@@ -85,7 +85,6 @@ def _getPlayersCells(_statsSheet, _startRow, _lastRow):
 
     if _playerCell.value == "":
       _playersCells.remove(_playerCell)
-      break
   
   return _playersCells
   
@@ -152,7 +151,7 @@ def _badName(_statsSheet, _playerCell):
 while True:
 
   try:
-    _statsSheet, _leaderSheet = _getStatsSheet(_spreadsheetKey)
+    _statsSheet, _leaderSheet = _getSheets(_spreadsheetKey)
     _numParticipants = _getNumParticipants(_leaderSheet)
     _startRow, _lastRow, _urlDate = _getRowsFromDate(_statsSheet, _numParticipants)
     if _startRow == 0: