alfred-data
Nils Schneider 2012-06-04 19:02:12 +02:00
parent bc4b90c4ed
commit eba95718cb
1 changed files with 4 additions and 3 deletions

View File

@ -190,11 +190,12 @@ class NodeDB:
macs = [s for s in [s.strip() for s in node['MAC'].split(',')] if s]
gps = [s for s in [s.strip() for s in node['GPS'].split(',')] if s]
zipped = zip(macs, gps)
if 'Nick' in node:
names = [s for s in [s.strip() for s in node['Nick'].split(',')] if s]
zipped = zip(macs, gps, names)
else:
zipped = zip(macs, gps)
if names:
zipped = zip(macs, gps, names)
for pair in zipped:
try: