diff --git a/homelab-ai-bot/telegram_bot.py b/homelab-ai-bot/telegram_bot.py index b72c2029..b227a7d6 100644 --- a/homelab-ai-bot/telegram_bot.py +++ b/homelab-ai-bot/telegram_bot.py @@ -469,7 +469,7 @@ async def handle_photo(update: Update, ctx: ContextTypes.DEFAULT_TYPE): await update.message.reply_text(f"Fehler bei Bildanalyse: {e}") -def _check_flight_plausibility(text: str) -> str: +def _check_flight_plausibility(text: str) -> tuple[str, list]: """Prueft LLM-Antwort auf verdaechtige Layover-Zeiten zwischen Flugsegmenten. Parst Datum/Uhrzeit-Paare aus der strukturierten Antwort und flaggt @@ -512,7 +512,7 @@ def _check_flight_plausibility(text: str) -> str: current_seg = {} if len(segments) < 2: - return "" + return "", [] warnings = [] year = 2026