5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-11-22 12:50:27 +00:00

Fix node id

This commit is contained in:
Vanhala Antti 2014-03-30 23:33:27 +03:00
parent bb38c17112
commit 59b53eb03e

View File

@ -198,7 +198,7 @@ def get_graph_json(G):
pos = n.attr['pos'].split(',', 1) pos = n.attr['pos'].split(',', 1)
out_data['nodes'].append({ out_data['nodes'].append({
'id': n.attr['label'], 'id': n.name,
'label': n.attr['label'], 'label': n.attr['label'],
'version': n.attr['version'], 'version': n.attr['version'],
'x': float(pos[0]), 'x': float(pos[0]),