fix stat error

This commit is contained in:
Aron Petau 2026-01-01 21:28:43 +01:00
parent fe5403b5b3
commit df33dcd00c

View file

@ -187,6 +187,9 @@ class TelegramBot:
retries = app.get("retries", 0) + 1 retries = app.get("retries", 0) + 1
result = await self.app_handler.apply(listing) result = await self.app_handler.apply(listing)
result["retries"] = retries 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) self.app_handler.save_application(result)
results[listing["id"]] = result results[listing["id"]] = result
status_emoji = "" if result["success"] else "" status_emoji = "" if result["success"] else ""