James McCool commited on
Commit
2841628
·
1 Parent(s): 2e01205

Add 'Backtesting_upload' entry to entry list in load_contest_file function

Browse files

- Updated the load_contest_file function to append 'Backtesting_upload' to the entry list when a portfolio is provided, enhancing the functionality for backtesting scenarios.
- This change improves the integration of portfolio data and aligns with ongoing efforts to streamline contest file processing.

Files changed (1) hide show
  1. global_func/load_contest_file.py +2 -0
global_func/load_contest_file.py CHANGED
@@ -172,6 +172,8 @@ def load_contest_file(upload, type, helper = None, sport = None, portfolio = Non
172
 
173
  # Get unique entry names
174
  entry_list = list(set(df['BaseName'].dropna()))
 
 
175
  entry_list.sort()
176
 
177
  return cleaned_df, ownership_df, fpts_df, entry_list, check_lineups
 
172
 
173
  # Get unique entry names
174
  entry_list = list(set(df['BaseName'].dropna()))
175
+ if portfolio is not None:
176
+ entry_list.append('Backtesting_upload')
177
  entry_list.sort()
178
 
179
  return cleaned_df, ownership_df, fpts_df, entry_list, check_lineups