Skip to content

Commit

Permalink
added 27016 default to port config because udpates to sint require th…
Browse files Browse the repository at this point in the history
…at the default port be an int so previous None type caused errors.
  • Loading branch information
g0es committed Nov 30, 2019
1 parent f1a6e0f commit 4f00d2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/server/db/mongo/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ def __init__(self):
self.async_client = motor.motor_asyncio.AsyncIOMotorClient(username=config.DB_USERNAME,
password=config.get_from_file(config.MONGO_KEY_PATH),
host=config.MONGO_HOST,
port=config.get_int("MONGO_PORT"))
port=config.get_int("MONGO_PORT",27016))

self.reg_client = pymongo.MongoClient(username=config.DB_USERNAME,
password=config.get_from_file(config.MONGO_KEY_PATH),
host=config.MONGO_HOST,
port=config.get_int("MONGO_PORT"))
port=config.get_int("MONGO_PORT",27016))

self.init_db()

Expand Down

0 comments on commit 4f00d2a

Please sign in to comment.