mirror of
https://github.com/cwinfo/yggdrasil-map
synced 2024-11-22 07:00:28 +00:00
Fix node id
This commit is contained in:
parent
bb38c17112
commit
59b53eb03e
@ -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]),
|
||||
|
Loading…
Reference in New Issue
Block a user