Skip to content

Commit

Permalink
Update FLASK_DEBUG_MODE setting to use value from settings module
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Apr 8, 2024
1 parent 6911f86 commit abf24fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion application/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ def after_request(response):
return response

if __name__ == "__main__":
app.run(debug=True, port=7091)
app.run(debug=settings.FLASK_DEBUG_MODE, port=7091)

2 changes: 2 additions & 0 deletions application/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ class Settings(BaseSettings):
QDRANT_PATH: Optional[str] = None
QDRANT_DISTANCE_FUNC: str = "Cosine"

FLASK_DEBUG_MODE: bool = False


path = Path(__file__).parent.parent.absolute()
settings = Settings(_env_file=path.joinpath(".env"), _env_file_encoding="utf-8")

0 comments on commit abf24fe

Please sign in to comment.