bugfix
This commit is contained in:
parent
bc4b90c4ed
commit
eba95718cb
|
@ -190,11 +190,12 @@ class NodeDB:
|
||||||
|
|
||||||
macs = [s for s in [s.strip() for s in node['MAC'].split(',')] if s]
|
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]
|
gps = [s for s in [s.strip() for s in node['GPS'].split(',')] if s]
|
||||||
|
zipped = zip(macs, gps)
|
||||||
|
|
||||||
if 'Nick' in node:
|
if 'Nick' in node:
|
||||||
names = [s for s in [s.strip() for s in node['Nick'].split(',')] if s]
|
names = [s for s in [s.strip() for s in node['Nick'].split(',')] if s]
|
||||||
zipped = zip(macs, gps, names)
|
if names:
|
||||||
else:
|
zipped = zip(macs, gps, names)
|
||||||
zipped = zip(macs, gps)
|
|
||||||
|
|
||||||
for pair in zipped:
|
for pair in zipped:
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue