Commit
·
51e64b6
1
Parent(s):
489a24b
patch: fix tournament count bug
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def _check_match_type(match_type: str) -> str:
|
|
59 |
|
60 |
|
61 |
def get_num_competitions_played(df: pd.DataFrame, is_tournament: bool) -> int:
|
62 |
-
key_name = "
|
63 |
return df[key_name].nunique()
|
64 |
|
65 |
|
|
|
59 |
|
60 |
|
61 |
def get_num_competitions_played(df: pd.DataFrame, is_tournament: bool) -> int:
|
62 |
+
key_name = "tournament_end_date" if is_tournament else "event_date"
|
63 |
return df[key_name].nunique()
|
64 |
|
65 |
|