From df33dcd00c11a7d45d8e458c537722a23b2a04e9 Mon Sep 17 00:00:00 2001 From: Aron Date: Thu, 1 Jan 2026 21:28:43 +0100 Subject: [PATCH] fix stat error --- telegram_bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/telegram_bot.py b/telegram_bot.py index 7992ecb..0ee917e 100644 --- a/telegram_bot.py +++ b/telegram_bot.py @@ -187,6 +187,9 @@ class TelegramBot: retries = app.get("retries", 0) + 1 result = await self.app_handler.apply(listing) result["retries"] = retries + # Preserve original timestamp only if still failing; update on success + if not result["success"]: + result["timestamp"] = app.get("timestamp", result["timestamp"]) self.app_handler.save_application(result) results[listing["id"]] = result status_emoji = "✅" if result["success"] else "❌"