set version of nodes.json to 1

This commit is contained in:
Nils Schneider 2015-04-01 17:55:27 +02:00
parent ebde2fcba2
commit c9098b1793

View file

@ -61,6 +61,9 @@ def main(params):
if 'links' in nodedb: if 'links' in nodedb:
nodedb = {'nodes': dict()} nodedb = {'nodes': dict()}
# set version we're going to output
nodedb['version'] = 1
# update timestamp and assume all nodes are offline # update timestamp and assume all nodes are offline
nodedb['timestamp'] = now.isoformat() nodedb['timestamp'] = now.isoformat()
for node_id, node in nodedb['nodes'].items(): for node_id, node in nodedb['nodes'].items():