James McCool commited on
Commit
19654d9
·
1 Parent(s): 7443266

Update position list formatting in load_contest_file function

Browse files

- Adjusted the formatting of the position list for MLB to include spaces around position indicators, improving consistency in data processing.
- This change continues the effort to enhance data handling and user experience within the application.

Files changed (1) hide show
  1. global_func/load_contest_file.py +1 -1
global_func/load_contest_file.py CHANGED
@@ -3,7 +3,7 @@ import pandas as pd
3
 
4
  def load_contest_file(upload, sport):
5
  if sport == 'MLB':
6
- pos_list = ['P', 'C', '1B', '2B', '3B', 'SS', 'OF']
7
  if upload is not None:
8
  try:
9
  try:
 
3
 
4
  def load_contest_file(upload, sport):
5
  if sport == 'MLB':
6
+ pos_list = [' P ', ' C ', '1B ', ' 2B ', ' 3B ', ' SS', ' OF ']
7
  if upload is not None:
8
  try:
9
  try: