Add timestamp to output
This commit is contained in:
parent
fa78afd7ed
commit
64970a6c82
1 changed files with 2 additions and 0 deletions
|
@ -346,6 +346,8 @@ class NextcloudHandler:
|
||||||
return obj
|
return obj
|
||||||
|
|
||||||
def _output(self, obj, unsafe=False):
|
def _output(self, obj, unsafe=False):
|
||||||
|
if 'timestamp' not in obj:
|
||||||
|
obj['timestamp'] = time.time()
|
||||||
if unsafe:
|
if unsafe:
|
||||||
out_obj = obj
|
out_obj = obj
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue