From 9a9e8b204c3dac42dedaa977afdbdd5077375a00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=B6rflinger?= Date: Fri, 12 Dec 2025 10:08:09 +0100 Subject: [PATCH] Check for empty as well --- ChristmasEvent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ChristmasEvent.py b/ChristmasEvent.py index 7a4e785..eecf963 100755 --- a/ChristmasEvent.py +++ b/ChristmasEvent.py @@ -215,13 +215,13 @@ class ChristmasBot: data = self.db.get_forest_data() - if self.last_updated_data and len(self.last_updated_data) == len(data): + if self.last_updated_data and (len(self.last_updated_data) == len(data) or len(data) == 0): # Nothing changed. print(f"No change in dashboard, last checked {now}...", end="\r") return print("📝 Updating Forest Dashboard...") - + self.last_updated_data = data body = "# 🎄 The Christmas Forest 🎄\n\n" body += "### How to Participate:\n" body += "1. Send a DM to u/{}\n".format(config.username)