James McCool commited on
Commit
0a19512
·
1 Parent(s): 7092994

Update position lists in load_contest_file function for MMA and GOLF

Browse files

- Replaced the position lists for MMA and GOLF with a standardized list of baseball positions, ensuring consistency across sports.
- Maintained existing functionality while improving the clarity of player role assignments in the contest file loading process.

Files changed (1) hide show
  1. global_func/load_contest_file.py +2 -2
global_func/load_contest_file.py CHANGED
@@ -5,9 +5,9 @@ def load_contest_file(upload, helper = None, sport = None):
5
  if sport == 'MLB':
6
  pos_list = [' P ', ' C ', '1B ', ' 2B ', ' 3B ', ' SS ', ' OF ']
7
  elif sport == 'MMA':
8
- pos_list = ['Guy', 'Dude', 'Pooba', 'Bub', 'Chief', 'Buddy']
9
  elif sport == 'GOLF':
10
- pos_list = ['Guy', 'Dude', 'Pooba', 'Bub', 'Chief', 'Buddy']
11
  if upload is not None:
12
  try:
13
  try:
 
5
  if sport == 'MLB':
6
  pos_list = [' P ', ' C ', '1B ', ' 2B ', ' 3B ', ' SS ', ' OF ']
7
  elif sport == 'MMA':
8
+ pos_list = [' P ', ' C ', '1B ', ' 2B ', ' 3B ', ' SS ', ' OF ']
9
  elif sport == 'GOLF':
10
+ pos_list = [' P ', ' C ', '1B ', ' 2B ', ' 3B ', ' SS ', ' OF ']
11
  if upload is not None:
12
  try:
13
  try: