Skip to content

Commit

Permalink
Merge pull request #29 from PANDATD/alert-autofix-1
Browse files Browse the repository at this point in the history
Fix code scanning alert no. 1: Flask app is run in debug mode
  • Loading branch information
PANDATD authored Dec 3, 2024
2 parents e584954 + 669f06a commit 9d4bec9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crime-2-withUI/app.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/env python3
from report import models
from report import *

import os

if __name__ == '__main__':
app.run(debug=True, host='localhost', port=5000)
debug_mode = os.getenv('FLASK_DEBUG', 'False').lower() in ['true', '1', 't']
app.run(debug=debug_mode, host='localhost', port=5000)

0 comments on commit 9d4bec9

Please sign in to comment.