From 80a00a379ea7eef7631a3d41ca5b35819bcb3c74 Mon Sep 17 00:00:00 2001 From: Florian Uhlig Date: Tue, 7 Oct 2025 08:49:56 +0200 Subject: [PATCH] Bug Fixes --- main.py | 5 ++++ requirements.txt | 64 +++++++++++++++++++++--------------------------- 2 files changed, 33 insertions(+), 36 deletions(-) diff --git a/main.py b/main.py index 49e1f9f..0c9fee6 100644 --- a/main.py +++ b/main.py @@ -1,8 +1,12 @@ import logging import os +from dotenv import load_dotenv + from frontend.app import app +load_dotenv() + # Logging konfigurieren logging.basicConfig( level=logging.INFO, format="%(asctime)s - %(name)s - %(levelname)s - %(message)s" @@ -15,6 +19,7 @@ if __name__ == "__main__": debug = os.getenv("FLASK_DEBUG", "False").lower() == "true" host = os.getenv("FLASK_HOST", "0.0.0.0") port = int(os.getenv("FLASK_PORT", "8080")) + print(port) logger.info(f"Starting ChatBot application on {host}:{port}") logger.info(f"Debug mode: {debug}") diff --git a/requirements.txt b/requirements.txt index 2bc2985..1b37a24 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,36 +1,28 @@ -# Requirements for PY_ChatBot -# Core Framework -Flask>=2.3.0,<3.0.0 -Werkzeug>=2.3.0,<3.0.0 - -# Database & ORM (Optional for future expansion) -SQLAlchemy>=2.0.0,<3.0.0 - -# Environment & Configuration -python-dotenv>=1.0.0 - -# Security & Authentication -bcrypt>=4.0.0 - -# HTTP Client (for health checks and external APIs) -requests>=2.31.0 - -# Date/Time utilities -python-dateutil>=2.8.0 - -# Development Dependencies (commented out for production) -# pytest>=7.4.0 -# pytest-flask>=1.2.0 -# pytest-cov>=4.1.0 -# black>=23.7.0 -# flake8>=6.0.0 -# mypy>=1.5.0 - -# Production WSGI Server -gunicorn>=21.2.0 - -# Logging -colorlog>=6.7.0 - -# Utility -click>=8.1.0 \ No newline at end of file +astroid==3.3.11 +black==25.9.0 +blinker==1.9.0 +click==8.3.0 +dill==0.4.0 +dotenv==0.9.9 +flake8==7.3.0 +Flask==3.1.2 +iniconfig==2.1.0 +isort==6.1.0 +itsdangerous==2.2.0 +Jinja2==3.1.6 +MarkupSafe==3.0.3 +mccabe==0.7.0 +mypy_extensions==1.1.0 +packaging==25.0 +pathspec==0.12.1 +platformdirs==4.4.0 +pluggy==1.6.0 +pycodestyle==2.14.0 +pyflakes==3.4.0 +Pygments==2.19.2 +pylint==3.3.8 +pytest==8.4.2 +python-dotenv==1.1.1 +pytokens==0.1.10 +tomlkit==0.13.3 +Werkzeug==3.1.3