Browse Source

Make today clearer

bryan 5 years ago
parent
commit
1147e6c00e
1 changed files with 2 additions and 2 deletions
  1. 2 2
      nba_playoffs_game_updater.py

+ 2 - 2
nba_playoffs_game_updater.py

@@ -11,7 +11,7 @@ from nba_api.stats.endpoints import playergamelog
 #spreadsheet_key = '12Zv95ZMJ008KXC5ytVnBusjX9wUnpOg0TOLwmxMNOTQ' # 2018 Official
 spreadsheet_key = '14pHOScaGXvN83iCca6_5p6QoViYvo223cIJD9nnl7TI' # 2019 Test
 json_keyfile = 'NBA Playoffs Game-1f9a46f0715c.json'
-#current_day = "" # today, else:
+#current_day = 'today' # today, else:
 current_day = datetime.date(2018, 4, 14) # set date manually
 nba_cooldown = 1 # in seconds, don't hammer the NBA.com API too hard
 
@@ -27,7 +27,7 @@ def getWorksheet(spreadsheet_key, json_keyfile):
   return worksheet
 
 def setDates(current_day):
-  if current_day == "":
+  if current_day == 'today':
     current_day = datetime.datetime.now() - datetime.timedelta(hours=3) # in case games go past midnight
     current_day = current_day.date()
   url_date = current_day.strftime('%m/%d/%Y')