Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -904,6 +904,7 @@ def server(input, output, session):
|
|
| 904 |
|
| 905 |
# Fetch comparison data if compare_mode is enabled
|
| 906 |
compare_df = None
|
|
|
|
| 907 |
if input.compare_mode():
|
| 908 |
try:
|
| 909 |
p.set(0.5, "Fetching comparison data...")
|
|
@@ -954,7 +955,8 @@ def server(input, output, session):
|
|
| 954 |
plot_picker='short_form_movement',
|
| 955 |
sport_id=sport_id,
|
| 956 |
game_type=[input.type_input()],
|
| 957 |
-
compare_df=compare_df
|
|
|
|
| 958 |
)
|
| 959 |
|
| 960 |
|
|
|
|
| 904 |
|
| 905 |
# Fetch comparison data if compare_mode is enabled
|
| 906 |
compare_df = None
|
| 907 |
+
compare_year = None
|
| 908 |
if input.compare_mode():
|
| 909 |
try:
|
| 910 |
p.set(0.5, "Fetching comparison data...")
|
|
|
|
| 955 |
plot_picker='short_form_movement',
|
| 956 |
sport_id=sport_id,
|
| 957 |
game_type=[input.type_input()],
|
| 958 |
+
compare_df=compare_df,
|
| 959 |
+
compare_year=compare_year
|
| 960 |
)
|
| 961 |
|
| 962 |
|