bat2nodes: deal with rrd after creating nodes.json
This commit is contained in:
parent
0918b5a3b1
commit
7f49d93311
|
@ -69,10 +69,6 @@ if options['obscure']:
|
||||||
|
|
||||||
scriptdir = os.path.dirname(os.path.realpath(__file__))
|
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)
|
m = D3MapBuilder(db)
|
||||||
|
|
||||||
#Write nodes json
|
#Write nodes json
|
||||||
|
@ -82,3 +78,7 @@ nodes_json.close()
|
||||||
|
|
||||||
#Move to destination
|
#Move to destination
|
||||||
os.rename(options['destination_directory'] + '/nodes.json.new',options['destination_directory'] + '/nodes.json')
|
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()
|
||||||
|
|
Loading…
Reference in a new issue