app/app.py aktualisiert

This commit is contained in:
sascha 2025-12-27 11:19:28 +00:00
parent 9ba766baac
commit 0832d52556

View File

@ -7,24 +7,6 @@ from difflib import SequenceMatcher
app = Flask(__name__)
print("--- DEBUG START ---")
# Wo bin ich gerade?
cwd = os.getcwd()
print(f"Ich befinde mich im Ordner: {cwd}")
# Was sehe ich hier?
try:
print(f"Dateien in {cwd}: {os.listdir(cwd)}")
except Exception as e:
print(f"Konnte {cwd} nicht lesen: {e}")
# Existiert /app?
if os.path.exists('/app'):
print(f"Dateien in /app: {os.listdir('/app')}")
else:
print("Der Ordner /app existiert gar nicht!")
print("--- DEBUG ENDE ---")
# DB Verbindung mit Retry-Logik
def get_db_connection():