James McCool commited on
Commit
c058449
·
1 Parent(s): 8988bbf

Refine position replacement logic in CSV loading process to apply only when site_var is 'Fanduel'.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -281,8 +281,8 @@ if selected_tab == 'Data Load':
281
  elif sport_var == 'NASCAR':
282
  st.session_state['csv_file']['Position'] = 'FLEX'
283
  st.session_state['csv_file']['Team'] = 'NASCAR'
284
-
285
- st.session_state['csv_file']['Position'] = st.session_state['csv_file']['Position'].replace('D', 'DST', regex=False)
286
  st.success('Projections file loaded successfully!')
287
  st.dataframe(st.session_state['csv_file'].head(10))
288
 
 
281
  elif sport_var == 'NASCAR':
282
  st.session_state['csv_file']['Position'] = 'FLEX'
283
  st.session_state['csv_file']['Team'] = 'NASCAR'
284
+ if site_var == 'Fanduel':
285
+ st.session_state['csv_file']['Position'] = st.session_state['csv_file']['Position'].replace('D', 'DST', regex=False)
286
  st.success('Projections file loaded successfully!')
287
  st.dataframe(st.session_state['csv_file'].head(10))
288