Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
from sqlalchemy.exc import SQLAlchemyError
from uuid import uuid4
from typing import Optional
import os


answer_for_data_not_found = 'Invalid or missing data'
Expand Down Expand Up @@ -168,4 +169,5 @@ def updated_task():
db.create_all()

if __name__ == '__main__':
app.run(debug=True, host='0.0.0.0', port=5000)
debug_mode = os.environ.get("FLASK_DEBUG", "0") == "1"
app.run(debug=debug_mode, host='0.0.0.0', port=5000)
Loading