Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -209,7 +209,7 @@ import pandas as pd
|
|
| 209 |
app_ui = ui.page_sidebar(
|
| 210 |
|
| 211 |
ui.sidebar(
|
| 212 |
-
ui.markdown("#### 2025
|
| 213 |
ui.input_select(
|
| 214 |
"team_id",
|
| 215 |
"Select Team",
|
|
@@ -227,14 +227,6 @@ app_ui = ui.page_sidebar(
|
|
| 227 |
target="_blank"
|
| 228 |
)
|
| 229 |
),
|
| 230 |
-
ui.div(
|
| 231 |
-
"Inspired By: ", # Plain text
|
| 232 |
-
ui.tags.a(
|
| 233 |
-
"@Mike_Kurland", # Only the handle is linked
|
| 234 |
-
href="https://x.com/Mike_Kurland",
|
| 235 |
-
target="_blank"
|
| 236 |
-
)
|
| 237 |
-
),
|
| 238 |
ui.tags.p("Data: MLB"),
|
| 239 |
ui.tags.p(
|
| 240 |
ui.tags.a(
|
|
@@ -295,29 +287,29 @@ def server(input, output, session):
|
|
| 295 |
@render.text
|
| 296 |
def lineup_title():
|
| 297 |
|
| 298 |
-
return f"{teams_name_dict[int(input.team_id())]}
|
| 299 |
|
| 300 |
@render.text
|
| 301 |
def summary_title():
|
| 302 |
|
| 303 |
-
return f"{teams_name_dict[int(input.team_id())]}
|
| 304 |
|
| 305 |
@render.text
|
| 306 |
def fantasy_title():
|
| 307 |
|
| 308 |
-
return f"{teams_name_dict[int(input.team_id())]}
|
| 309 |
|
| 310 |
@render.text
|
| 311 |
def player_title():
|
| 312 |
|
| 313 |
-
return f"{teams_name_dict[int(input.team_id())]}
|
| 314 |
|
| 315 |
|
| 316 |
@reactive.calc
|
| 317 |
def cached_data():
|
| 318 |
team_id_select = int(input.team_id())
|
| 319 |
|
| 320 |
-
df_schedule = scraper.get_schedule(year_input=[2025],sport_id=[1],game_type=['
|
| 321 |
|
| 322 |
# df_schedule_p = scraper.get_schedule(year_input=[2024],sport_id=[21],game_type=['E'])
|
| 323 |
|
|
|
|
| 209 |
app_ui = ui.page_sidebar(
|
| 210 |
|
| 211 |
ui.sidebar(
|
| 212 |
+
ui.markdown("#### 2025 MLB Lineup Tracker"),
|
| 213 |
ui.input_select(
|
| 214 |
"team_id",
|
| 215 |
"Select Team",
|
|
|
|
| 227 |
target="_blank"
|
| 228 |
)
|
| 229 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 230 |
ui.tags.p("Data: MLB"),
|
| 231 |
ui.tags.p(
|
| 232 |
ui.tags.a(
|
|
|
|
| 287 |
@render.text
|
| 288 |
def lineup_title():
|
| 289 |
|
| 290 |
+
return f"{teams_name_dict[int(input.team_id())]} Lineups"
|
| 291 |
|
| 292 |
@render.text
|
| 293 |
def summary_title():
|
| 294 |
|
| 295 |
+
return f"{teams_name_dict[int(input.team_id())]} Lineup Summary"
|
| 296 |
|
| 297 |
@render.text
|
| 298 |
def fantasy_title():
|
| 299 |
|
| 300 |
+
return f"{teams_name_dict[int(input.team_id())]} Position Eligibility Tracker - Yahoo"
|
| 301 |
|
| 302 |
@render.text
|
| 303 |
def player_title():
|
| 304 |
|
| 305 |
+
return f"{teams_name_dict[int(input.team_id())]} Teammate Summary"
|
| 306 |
|
| 307 |
|
| 308 |
@reactive.calc
|
| 309 |
def cached_data():
|
| 310 |
team_id_select = int(input.team_id())
|
| 311 |
|
| 312 |
+
df_schedule = scraper.get_schedule(year_input=[2025],sport_id=[1],game_type=['R'])
|
| 313 |
|
| 314 |
# df_schedule_p = scraper.get_schedule(year_input=[2024],sport_id=[21],game_type=['E'])
|
| 315 |
|