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 "❌"