fix getting field from wrong var

This commit is contained in:
Jan Petykiewicz 2021-11-12 14:18:10 -08:00
parent 9ee5778933
commit 65533b8d99

View File

@ -42,7 +42,7 @@ def write_wmap(wmap: Map, el_root: ElementTree.Element) -> None:
map_fields = [ff.name for ff in fields(wmap)]
for field in map_fields:
if field[0].isupper():
val = getattr(device, field)
val = getattr(wmap, field)
if val is None:
continue
el_map.set(field, val)