James McCool commited on
Commit
32e941f
·
1 Parent(s): 629cb6e

Refactor return values in load_contest_file.py to streamline data output

Browse files

- Removed the salary_df and team_df from the return statement, simplifying the data structure returned by the load_contest_file function.
- Enhanced clarity by focusing on essential data outputs, improving the maintainability of the function.
- Maintained existing functionality while refining the data handling process during contest file loading.

Files changed (1) hide show
  1. global_func/load_contest_file.py +1 -1
global_func/load_contest_file.py CHANGED
@@ -136,7 +136,7 @@ def load_contest_file(upload, helper = None, sport = None):
136
  entry_list = list(set(df['BaseName']))
137
  entry_list.sort()
138
 
139
- return cleaned_df, ownership_df, fpts_df, salary_df, team_df, pos_df, entry_list, check_lineups
140
 
141
  except Exception as e:
142
  st.error(f'Error loading file: {str(e)}')
 
136
  entry_list = list(set(df['BaseName']))
137
  entry_list.sort()
138
 
139
+ return cleaned_df, ownership_df, fpts_df, entry_list, check_lineups
140
 
141
  except Exception as e:
142
  st.error(f'Error loading file: {str(e)}')