diff --git a/app.py b/app.py index abf3499..6d7ae65 100644 --- a/app.py +++ b/app.py @@ -30,7 +30,7 @@ # app init app = Flask(__name__) app.rdb = rdb = RedisIO(config.REDIS_URL) -app.mdb = mdb = PyMongo(app, config.MONGO_URL + "?retryWrites=false").db +app.mdb = mdb = PyMongo(app, config.MONGO_URL).db CORS(app) diff --git a/docker/config-production.py b/docker/config-production.py index f980a9f..916a687 100644 --- a/docker/config-production.py +++ b/docker/config-production.py @@ -3,7 +3,7 @@ TESTING = True if os.environ.get("TESTING") else False ENVIRONMENT = "Production" -MONGO_URL = os.environ["MONGO_URL"] +MONGO_URL = os.environ["MONGO_URL"] + "&retryWrites=false" REDIS_URL = os.environ["REDIS_URL"] SENTRY_DSN = os.getenv("SENTRY_DSN") diff --git a/docker/config-staging.py b/docker/config-staging.py index 51a6523..d755e48 100644 --- a/docker/config-staging.py +++ b/docker/config-staging.py @@ -3,7 +3,7 @@ TESTING = True if os.environ.get("TESTING") else False ENVIRONMENT = "Staging" -MONGO_URL = os.environ["MONGO_URL"] +MONGO_URL = os.environ["MONGO_URL"] + "&retryWrites=false" REDIS_URL = os.environ["REDIS_URL"] SENTRY_DSN = os.getenv("SENTRY_DSN")