From e839d71adc38aa981751569e5a9b51f6d65b0a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20M=C3=B8rstad?= Date: Tue, 7 Nov 2023 22:40:51 +0100 Subject: [PATCH] :bug: fix api stats doc in prod being visible --- app/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/__init__.py b/app/__init__.py index 2fb2a14..a92ceb7 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -41,7 +41,7 @@ def create_app(): app.include_router(mail.router, prefix="/api/mail", tags=['mail']) app.include_router(jobs.router, prefix="/api/jobs", tags=['job']) # only visible in development - app.include_router(stats.router, prefix="/api/stats", tags=['stats'], include_in_schema=app.config!='production') + app.include_router(stats.router, prefix="/api/stats", tags=['stats'], include_in_schema=app.config.ENV!='production') setup_db(app) # Set tokens to expire at at "exp"