James McCool commited on
Commit
09fdd0a
·
1 Parent(s): fea24a1

Update subscription notice links in scoring percentages for Simple view to direct users to the subscription page

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -356,28 +356,22 @@ with tab1:
356
  if view_var == "Simple":
357
  scoring_percentages = scoring_percentages[['Names', 'Runs', '8+ Runs', 'Win%', 'LevX', 'Own%']]
358
  for col in ['Names', '8+ Runs', 'Own%']:
359
- scoring_percentages[col] = 'Subscription Only ($$)'
360
  st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2),
361
- column_config={
362
  "Names": st.column_config.LinkColumn(
363
  "Teams",
364
  help="The Team being projected",
365
- validate="https://paydirtdfs.com/subscriptions-choices/",
366
- max_chars=100,
367
  display_text='Subscription Only ($$)'
368
  ),
369
  "8+ Runs": st.column_config.LinkColumn(
370
  "8+ Runs",
371
  help="How often the team scores eight or more runs, a threshold that indicates upside for GPPs",
372
- validate="https://paydirtdfs.com/subscriptions-choices/",
373
- max_chars=100,
374
  display_text='Subscription Only ($$)'
375
  ),
376
  "Own%": st.column_config.LinkColumn(
377
  "Own%",
378
  help="The projected sum ownership of hitters on the Team",
379
- validate="https://paydirtdfs.com/subscriptions-choices/",
380
- max_chars=100,
381
  display_text='Subscription Only ($$)'
382
  )
383
  }, height=750, use_container_width = True, hide_index = True)
 
356
  if view_var == "Simple":
357
  scoring_percentages = scoring_percentages[['Names', 'Runs', '8+ Runs', 'Win%', 'LevX', 'Own%']]
358
  for col in ['Names', '8+ Runs', 'Own%']:
359
+ scoring_percentages[col] = 'https://paydirtdfs.com/subscriptions-choices/'
360
  st.dataframe(scoring_percentages.style.background_gradient(axis=0).background_gradient(cmap='RdYlGn').format(game_format, precision=2),
361
+ column_config={
362
  "Names": st.column_config.LinkColumn(
363
  "Teams",
364
  help="The Team being projected",
 
 
365
  display_text='Subscription Only ($$)'
366
  ),
367
  "8+ Runs": st.column_config.LinkColumn(
368
  "8+ Runs",
369
  help="How often the team scores eight or more runs, a threshold that indicates upside for GPPs",
 
 
370
  display_text='Subscription Only ($$)'
371
  ),
372
  "Own%": st.column_config.LinkColumn(
373
  "Own%",
374
  help="The projected sum ownership of hitters on the Team",
 
 
375
  display_text='Subscription Only ($$)'
376
  )
377
  }, height=750, use_container_width = True, hide_index = True)