From 36c852b7bbe8ff8d46128dccd9c8f058e42aa922 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Tue, 12 Mar 2013 20:09:48 +0100 Subject: [PATCH] add meta.timestamp --- d3mapbuilder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/d3mapbuilder.py b/d3mapbuilder.py index 35678fd..8ffcf9e 100644 --- a/d3mapbuilder.py +++ b/d3mapbuilder.py @@ -1,4 +1,5 @@ import json +import datetime class D3MapBuilder: def __init__(self, db): @@ -23,5 +24,9 @@ class D3MapBuilder: 'id': x.id } for x in links] + output['meta'] = { + 'timestamp': datetime.datetime.utcnow().isoformat() + } + return json.dumps(output)