Spaces:
Running
Running
James McCool
commited on
Commit
·
30408c9
1
Parent(s):
d45b209
Refactor opponent data retrieval in init_team_data function of app.py. Updated the query to exclude the opponent filter, allowing for a broader analysis of performance metrics over the specified date range. This change enhances the flexibility of data retrieval for team performance evaluations.
Browse files
app.py
CHANGED
|
@@ -113,7 +113,7 @@ def init_team_data(team, opponent, win_loss, kill_prediction, death_prediction,
|
|
| 113 |
cursor = collection.find({"teamname": team, "date": {"$gte": start_datetime, "$lte": end_datetime}})
|
| 114 |
raw_display = pd.DataFrame(list(cursor))
|
| 115 |
|
| 116 |
-
cursor = collection.find({"
|
| 117 |
raw_opponent = pd.DataFrame(list(cursor))
|
| 118 |
|
| 119 |
tables_to_loop = [raw_display, raw_opponent]
|
|
|
|
| 113 |
cursor = collection.find({"teamname": team, "date": {"$gte": start_datetime, "$lte": end_datetime}})
|
| 114 |
raw_display = pd.DataFrame(list(cursor))
|
| 115 |
|
| 116 |
+
cursor = collection.find({"date": {"$gte": start_datetime, "$lte": end_datetime}})
|
| 117 |
raw_opponent = pd.DataFrame(list(cursor))
|
| 118 |
|
| 119 |
tables_to_loop = [raw_display, raw_opponent]
|