5
0
mirror of https://github.com/cwinfo/yggdrasil-map synced 2024-09-19 00:59:35 +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)
out_data['nodes'].append({
'id': n.attr['label'],
'id': n.name,
'label': n.attr['label'],
'version': n.attr['version'],
'x': float(pos[0]),