Improve last_checked vs last_changed time information precision (#2883)

This commit is contained in:
dgtlmoon
2025-01-06 20:38:50 +01:00
committed by GitHub
parent 202e47d728
commit 66fb05527b
6 changed files with 47 additions and 19 deletions

View File

@@ -76,6 +76,7 @@ class Watch(Resource):
# Return without history, get that via another API call
# Properties are not returned as a JSON, so add the required props manually
watch['history_n'] = watch.history_n
# attr .last_changed will check for the last written text snapshot on change
watch['last_changed'] = watch.last_changed
watch['viewed'] = watch.viewed
return watch