Snapshot count from history was not updated in watch after using [clear history] (#2459)

This commit is contained in:
dgtlmoon
2024-07-05 11:09:31 +02:00
committed by GitHub
parent 01f910f840
commit a1d04bb37f
4 changed files with 21 additions and 10 deletions

View File

@@ -238,6 +238,8 @@ class model(dict):
if len(tmp_history):
self.__newest_history_key = list(tmp_history.keys())[-1]
else:
self.__newest_history_key = None
self.__history_n = len(tmp_history)