Fix code scanning alert no. 1: Flask app is run in debug mode

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Stalin
2024-12-10 13:45:51 +05:30
committed by GitHub
parent b8ddac48c3
commit f6300965be
+2 -1
View File
@@ -120,4 +120,5 @@ def download_log():
return "Log file not found." return "Log file not found."
if __name__ == '__main__': if __name__ == '__main__':
app.run(debug=True) debug_mode = os.getenv('FLASK_DEBUG', 'False').lower() in ['true', '1', 't']
app.run(debug=debug_mode)