From c9098b179379920cb7e06383290542c8b1851364 Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Wed, 1 Apr 2015 17:55:27 +0200 Subject: [PATCH] set version of nodes.json to 1 --- backend.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend.py b/backend.py index 57707bf..98f0124 100755 --- a/backend.py +++ b/backend.py @@ -61,6 +61,9 @@ def main(params): if 'links' in nodedb: nodedb = {'nodes': dict()} + # set version we're going to output + nodedb['version'] = 1 + # update timestamp and assume all nodes are offline nodedb['timestamp'] = now.isoformat() for node_id, node in nodedb['nodes'].items():