output geo as floats, not strings

alfred-data
Nils Schneider 2013-01-17 22:13:20 +01:00
parent 828b68ab34
commit 78e8d4f6ff
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class D3MapBuilder:
output['nodes'] = [{'name': x.name, 'id': x.id, output['nodes'] = [{'name': x.name, 'id': x.id,
'macs': ', '.join(x.macs), 'macs': ', '.join(x.macs),
'geo': x.gps.split(" ") if x.gps else None, 'geo': [float(x) for x in x.gps.split(" ")] if x.gps else None,
'flags': x.flags 'flags': x.flags
} for x in nodes] } for x in nodes]