James McCool
commited on
Commit
·
48da594
1
Parent(s):
996f8cb
Update db_type assignment in app.py for improved clarity in contest type handling
Browse files- Changed the assignment of db_type for 'Showdown' from 'sd' to 'showdown', enhancing code readability and consistency.
- Maintained existing functionality while improving the clarity of contest type definitions in the data retrieval process.
app.py
CHANGED
@@ -36,7 +36,7 @@ def grab_contest_player_info(db, sport, type, contest_date):
|
|
36 |
if type == 'Classic':
|
37 |
db_type = 'reg'
|
38 |
elif type == 'Showdown':
|
39 |
-
db_type = '
|
40 |
collection = db[f'{sport}_{db_type}_player_info']
|
41 |
cursor = collection.find()
|
42 |
|
|
|
36 |
if type == 'Classic':
|
37 |
db_type = 'reg'
|
38 |
elif type == 'Showdown':
|
39 |
+
db_type = 'showdown'
|
40 |
collection = db[f'{sport}_{db_type}_player_info']
|
41 |
cursor = collection.find()
|
42 |
|