James McCool commited on
Commit
ef81816
·
1 Parent(s): 0839608

Added sport specific databases

Browse files
Files changed (1) hide show
  1. database.py +5 -2
database.py CHANGED
@@ -11,7 +11,10 @@ def init_conn():
11
  client = pymongo.MongoClient(uri, retryWrites=True, serverSelectionTimeoutMS=500000)
12
  nfl_db = client["NFL_Database"]
13
  salaries_db = client['Contest_Information']
 
 
 
14
 
15
- return nfl_db, salaries_db
16
 
17
- nfl_db, salaries_db = init_conn()
 
11
  client = pymongo.MongoClient(uri, retryWrites=True, serverSelectionTimeoutMS=500000)
12
  nfl_db = client["NFL_Database"]
13
  salaries_db = client['Contest_Information']
14
+ nba_db = client["NBA_Database"]
15
+ mlb_db = client["MLB_Database"]
16
+ nhl_db = client["NHL_Database"]
17
 
18
+ return nfl_db, salaries_db, nba_db, mlb_db, nhl_db
19
 
20
+ nfl_db, salaries_db, nba_db, mlb_db, nhl_db = init_conn()