James McCool commited on
Commit
61807b4
·
1 Parent(s): e344b74

Update FD seed frame initialization in app.py to exclude the _id field from the database query, improving data handling and readability.

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def init_DK_Secondary_seed_frames(sharp_split):
49
  def init_FD_seed_frames(sharp_split):
50
 
51
  collection = db['FD_NFL_name_map']
52
- cursor = collection.find()
53
  names_dict = dict(cursor)
54
 
55
  collection = db["FD_NFL_seed_frame"]
 
49
  def init_FD_seed_frames(sharp_split):
50
 
51
  collection = db['FD_NFL_name_map']
52
+ cursor = collection.find({}, {'_id': 0}) # Exclude _id field
53
  names_dict = dict(cursor)
54
 
55
  collection = db["FD_NFL_seed_frame"]