Check for empty as well
This commit is contained in:
@@ -215,7 +215,7 @@ class ChristmasBot:
|
||||
|
||||
data = self.db.get_forest_data()
|
||||
|
||||
if self.last_updated_data and (len(self.last_updated_data) == len(data) or len(data) == 0):
|
||||
if 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
|
||||
|
||||
Reference in New Issue
Block a user