API - Including `last_changed` timestamp in watch API info (#1436)

pull/1439/head
dgtlmoon 2 years ago committed by GitHub
parent 0e1032a36a
commit abf234298c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -70,7 +70,10 @@ class Watch(Resource):
return "OK", 200 return "OK", 200
# Return without history, get that via another API call # 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 watch['history_n'] = watch.history_n
watch['last_changed'] = watch.last_changed
return watch return watch
@auth.check_token @auth.check_token

Loading…
Cancel
Save