use dictionary api

This commit is contained in:
Jakob Ketterl 2020-03-23 22:09:41 +01:00
parent 37e74f9027
commit 7562dc8ecb

View File

@ -106,7 +106,7 @@ class OpenWebRxReceiverClient(Client):
"photo_title",
"photo_desc",
]
receiver_details = dict((key, pm.getPropertyValue(key)) for key in receiver_keys)
receiver_details = dict((key, pm[key]) for key in receiver_keys)
receiver_details["locator"] = Locator.fromCoordinates(receiver_details["receiver_gps"])
self.write_receiver_details(receiver_details)