From 8706ab9f533adf0c1224618846e2fdf3b0622f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=B6rflinger?= Date: Fri, 12 Dec 2025 09:53:40 +0100 Subject: [PATCH] Prevent unneeded updates --- ChristmasEvent.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ChristmasEvent.py b/ChristmasEvent.py index 08cac9c..3a290de 100755 --- a/ChristmasEvent.py +++ b/ChristmasEvent.py @@ -213,7 +213,6 @@ class ChristmasBot: now = time.time() if now - self.last_dashboard_update < config.update_post_interval: return - print("📝 Updating Forest Dashboard...") data = self.db.get_forest_data() if self.last_updated_data and self.last_updated_data == data: @@ -221,6 +220,8 @@ class ChristmasBot: print(f"No change in dashboard, last checked {now}...", end="\r") return + print("📝 Updating Forest Dashboard...") + body = "# 🎄 The Christmas Forest 🎄\n\n" body += "### How to Participate:\n" body += "1. Send a DM to u/{}\n".format(config.username)