James McCool
commited on
Commit
·
30ba719
1
Parent(s):
c0dc70e
Add debug print statement for today's date in NBA showdown salary retrieval function
Browse files
app.py
CHANGED
|
@@ -205,6 +205,7 @@ def grab_nba_reg_salaries(slate_var: str):
|
|
| 205 |
def grab_nba_showdown_salaries():
|
| 206 |
collection = salaries_db["NBA_showdown_player_info"]
|
| 207 |
today_str = datetime.now().strftime("%Y%m%d")
|
|
|
|
| 208 |
records = pd.DataFrame(list(collection.find({'Date': {'$gte': today_str}})))
|
| 209 |
records = records[['Display Name', 'draftableId', 'Position', 'Salary']]
|
| 210 |
records = records.rename(columns={'Display Name': 'Name', 'draftableId': 'ID', 'Position': 'Roster Position'})
|
|
|
|
| 205 |
def grab_nba_showdown_salaries():
|
| 206 |
collection = salaries_db["NBA_showdown_player_info"]
|
| 207 |
today_str = datetime.now().strftime("%Y%m%d")
|
| 208 |
+
print(today_str)
|
| 209 |
records = pd.DataFrame(list(collection.find({'Date': {'$gte': today_str}})))
|
| 210 |
records = records[['Display Name', 'draftableId', 'Position', 'Salary']]
|
| 211 |
records = records.rename(columns={'Display Name': 'Name', 'draftableId': 'ID', 'Position': 'Roster Position'})
|