bat2nodes: deal with rrd after creating nodes.json

rewrite
Nils Schneider 2014-02-11 11:36:05 +01:00
parent 0918b5a3b1
commit 7f49d93311
1 changed files with 4 additions and 4 deletions

View File

@ -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()