James McCool commited on
Commit
5df1223
·
1 Parent(s): 26879cf

Update FanDuel lineup initialization collections

Browse files

- Modify init_FD_lineups to use correct FanDuel-specific database collections
- Replace DraftKings collection references with corresponding FanDuel collections
- Ensure proper data retrieval for FanDuel Regular and Showdown slates

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -79,7 +79,7 @@ def init_DK_lineups(type):
79
  def init_FD_lineups(type):
80
 
81
  if type == 'Regular':
82
- collection = db['PGA_DK_Seed_Frame_Name_Map']
83
  elif type == 'Showdown':
84
  collection = db['PGA_DK_SD_Seed_Frame_Name_Map']
85
  cursor = collection.find()
@@ -87,7 +87,7 @@ def init_FD_lineups(type):
87
  names_dict = dict(zip(raw_data['key'], raw_data['value']))
88
 
89
  if type == 'Regular':
90
- collection = db["PGA_DK_Seed_Frame"]
91
  elif type == 'Showdown':
92
  collection = db["PGA_DK_SD_Seed_Frame"]
93
  cursor = collection.find().limit(10000)
 
79
  def init_FD_lineups(type):
80
 
81
  if type == 'Regular':
82
+ collection = db['PGA_FD_Seed_Frame_Name_Map']
83
  elif type == 'Showdown':
84
  collection = db['PGA_DK_SD_Seed_Frame_Name_Map']
85
  cursor = collection.find()
 
87
  names_dict = dict(zip(raw_data['key'], raw_data['value']))
88
 
89
  if type == 'Regular':
90
+ collection = db["PGA_FD_Seed_Frame"]
91
  elif type == 'Showdown':
92
  collection = db["PGA_DK_SD_Seed_Frame"]
93
  cursor = collection.find().limit(10000)