Run: black and isort

This commit is contained in:
2025-10-05 02:28:47 +02:00
parent bd3e23da07
commit 6e9f8a0589
12 changed files with 222 additions and 189 deletions

14
main.py
View File

@@ -1,20 +1,20 @@
import logging
import os
from frontend.app import app
# Logging konfigurieren
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s"
)
logger = logging.getLogger(__name__)
if __name__ == '__main__':
if __name__ == "__main__":
# Environment-Konfiguration
debug = os.getenv('FLASK_DEBUG', 'False').lower() == 'true'
host = os.getenv('FLASK_HOST', '0.0.0.0')
port = int(os.getenv('FLASK_PORT', '8080'))
debug = os.getenv("FLASK_DEBUG", "False").lower() == "true"
host = os.getenv("FLASK_HOST", "0.0.0.0")
port = int(os.getenv("FLASK_PORT", "8080"))
logger.info(f"Starting ChatBot application on {host}:{port}")
logger.info(f"Debug mode: {debug}")
@@ -25,4 +25,4 @@ if __name__ == '__main__':
logger.info("Application stopped by user")
except Exception as e:
logger.error(f"Application failed to start: {e}")
raise
raise