mirror of
https://github.com/dgtlmoon/changedetection.io.git
synced 2026-11-16 19:06:55 +00:00
API - Including last_changed timestamp in watch API info (#1436)
This commit is contained in:
1 parent
0e1032a36a
commit
abf234298c
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user