fix stat error
This commit is contained in:
parent
fe5403b5b3
commit
df33dcd00c
1 changed files with 3 additions and 0 deletions
|
|
@ -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 "❌"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue