check forn len rather than actual data
This commit is contained in:
@@ -215,7 +215,7 @@ class ChristmasBot:
|
|||||||
|
|
||||||
data = self.db.get_forest_data()
|
data = self.db.get_forest_data()
|
||||||
|
|
||||||
if self.last_updated_data and self.last_updated_data == data:
|
if self.last_updated_data and len(self.last_updated_data) == len(data):
|
||||||
# Nothing changed.
|
# Nothing changed.
|
||||||
print(f"No change in dashboard, last checked {now}...", end="\r")
|
print(f"No change in dashboard, last checked {now}...", end="\r")
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user