Skip to content

Commit

Permalink
Set Mongo vars to None
Browse files Browse the repository at this point in the history
  • Loading branch information
WinnyTroy committed Mar 10, 2021
1 parent de4b7e7 commit 51611bf
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions templates/kpi/settings.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -765,6 +765,5 @@ if MONGO_DATABASE.get('USER') and MONGO_DATABASE.get('PASSWORD'):
else:
MONGO_CONNECTION_URL = "mongodb://%(HOST)s:%(PORT)s" % MONGO_DATABASE

MONGO_CONNECTION = MongoClient(
MONGO_CONNECTION_URL, j=True, tz_aware=True, connect=False)
MONGO_DB = MONGO_CONNECTION[MONGO_DATABASE['NAME']]
MONGO_CONNECTION = None
MONGO_DB = None

0 comments on commit 51611bf

Please sign in to comment.