fix file format generated by ffhlwiki.py

This commit is contained in:
Nils Schneider 2013-02-02 01:25:02 +01:00
parent 46879f7caf
commit 3893963553

View file

@ -45,7 +45,7 @@ def import_wikigps(url):
nodes = fetch_wikitable(url)
aliases = []
aliases = {}
for node in nodes:
try:
@ -68,7 +68,7 @@ def import_wikigps(url):
for data in nodes:
alias = {}
alias['mac'] = data[0].strip()
mac = data[0].strip()
if data[1]:
alias['gps'] = data[1].strip()
@ -76,7 +76,7 @@ def import_wikigps(url):
if data[2]:
alias['name'] = data[2].strip()
aliases.append(alias)
aliases[mac] = alias
return aliases