diff options
author | Nils Schneider <nils@nilsschneider.net> | 2014-02-11 11:36:05 +0100 |
---|---|---|
committer | Nils Schneider <nils@nilsschneider.net> | 2014-02-11 11:36:05 +0100 |
commit | 7f49d93311c11ad054c0a35dfeebe044b7140be9 (patch) | |
tree | d55280761bb48e167eb4696a3e7429d2523aeb80 | |
parent | 0918b5a3b150051a44693eac1c2062ea1a1e02ce (diff) |
bat2nodes: deal with rrd after creating nodes.json
-rwxr-xr-x | bat2nodes.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bat2nodes.py b/bat2nodes.py index 15e0a39..29ab3d8 100755 --- a/bat2nodes.py +++ b/bat2nodes.py @@ -69,10 +69,6 @@ if options['obscure']: scriptdir = os.path.dirname(os.path.realpath(__file__)) -rrd = rrd(scriptdir + "/nodedb/", options['destination_directory'] + "/nodes") -rrd.update_database(db) -rrd.update_images() - m = D3MapBuilder(db) #Write nodes json @@ -82,3 +78,7 @@ nodes_json.close() #Move to destination os.rename(options['destination_directory'] + '/nodes.json.new',options['destination_directory'] + '/nodes.json') + +rrd = rrd(scriptdir + "/nodedb/", options['destination_directory'] + "/nodes") +rrd.update_database(db) +rrd.update_images() |