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

pull/1439/head
dgtlmoon 2023-02-25 22:00:46 +01:00 zatwierdzone przez GitHub
rodzic 0e1032a36a
commit abf234298c
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

@ -70,7 +70,10 @@ class Watch(Resource):
return "OK", 200
# 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['last_changed'] = watch.last_changed
return watch
@auth.check_token