add meta.timestamp
This commit is contained in:
parent
9eb7da519b
commit
36c852b7bb
|
@ -1,4 +1,5 @@
|
||||||
import json
|
import json
|
||||||
|
import datetime
|
||||||
|
|
||||||
class D3MapBuilder:
|
class D3MapBuilder:
|
||||||
def __init__(self, db):
|
def __init__(self, db):
|
||||||
|
@ -23,5 +24,9 @@ class D3MapBuilder:
|
||||||
'id': x.id
|
'id': x.id
|
||||||
} for x in links]
|
} for x in links]
|
||||||
|
|
||||||
|
output['meta'] = {
|
||||||
|
'timestamp': datetime.datetime.utcnow().isoformat()
|
||||||
|
}
|
||||||
|
|
||||||
return json.dumps(output)
|
return json.dumps(output)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue