Skip to content

Commit

Permalink
flasksrv disable debug by default
Browse files Browse the repository at this point in the history
  • Loading branch information
litnialex committed Sep 22, 2024
1 parent 7d2edcd commit 3e17aa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flasksrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
FLASK_SSL_PORT = os.environ.get('FLASK_SSL_PORT', 8443)
FLASK_SSL_CERT = os.environ.get('FLASK_SSL_CERT', 'ssl/cert.pem')
FLASK_SSL_KEY = os.environ.get('FLASK_SSL_KEY', 'ssl/privkey.pem')
FLASK_DEBUG = os.environ.get('FLASK_DEBUG', True)
FLASK_DEBUG = os.environ.get('FLASK_DEBUG', False)

# Enable SSL if certificate and key available
app_dir = os.path.dirname(os.path.abspath(__file__))
Expand Down
2 changes: 1 addition & 1 deletion proxybot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ async def forward(update, bot_data) -> dict:
u_thread = update.effective_message.message_thread_id
jobs = []
is_start_msg = (update.message and update.message.text and
update.message.text == '/start') or False
update.message.text.startswith('/start')) or False

# Lookup tracking data by u_id and u_chat
tracking = AsyncIOMotorClient(DB_URI)['tracking']['bot'+bot_id]
Expand Down

0 comments on commit 3e17aa0

Please sign in to comment.