James McCool
commited on
Commit
·
531fca9
1
Parent(s):
8bbf6ce
NASCAR player info is NAS, not NASCAR.
Browse files
app.py
CHANGED
|
@@ -470,7 +470,7 @@ def grab_pga_showdown_salaries():
|
|
| 470 |
return records
|
| 471 |
|
| 472 |
def grab_nascar_reg_salaries(slate_var: str):
|
| 473 |
-
collection = salaries_db["
|
| 474 |
eastern = pytz.timezone('US/Eastern')
|
| 475 |
today_str = datetime.now(eastern).strftime("%Y%m%d")
|
| 476 |
records = pd.DataFrame(list(collection.find({'Contest Date': {'$gte': today_str}})))
|
|
@@ -479,7 +479,7 @@ def grab_nascar_reg_salaries(slate_var: str):
|
|
| 479 |
return records
|
| 480 |
|
| 481 |
def grab_nascar_showdown_salaries():
|
| 482 |
-
collection = salaries_db["
|
| 483 |
eastern = pytz.timezone('US/Eastern')
|
| 484 |
today_str = datetime.now(eastern).strftime("%Y%m%d")
|
| 485 |
records = pd.DataFrame(list(collection.find({'Contest Date': {'$gte': today_str}})))
|
|
|
|
| 470 |
return records
|
| 471 |
|
| 472 |
def grab_nascar_reg_salaries(slate_var: str):
|
| 473 |
+
collection = salaries_db["NAS_reg_player_info"]
|
| 474 |
eastern = pytz.timezone('US/Eastern')
|
| 475 |
today_str = datetime.now(eastern).strftime("%Y%m%d")
|
| 476 |
records = pd.DataFrame(list(collection.find({'Contest Date': {'$gte': today_str}})))
|
|
|
|
| 479 |
return records
|
| 480 |
|
| 481 |
def grab_nascar_showdown_salaries():
|
| 482 |
+
collection = salaries_db["NAS_showdown_player_info"]
|
| 483 |
eastern = pytz.timezone('US/Eastern')
|
| 484 |
today_str = datetime.now(eastern).strftime("%Y%m%d")
|
| 485 |
records = pd.DataFrame(list(collection.find({'Contest Date': {'$gte': today_str}})))
|