1
0
mirror of https://github.com/Rhinemann/IoT-Systems.git synced 2026-03-14 20:50:39 +02:00

fix MapView/main.py crash due to wrong check condition

This commit is contained in:
ІО-23 Шмуляр Олег 2026-03-13 18:58:28 +02:00
parent 17738d07fe
commit 1c856dca0e

View File

@ -69,7 +69,7 @@ class MapViewApp(App):
"""
lat, lon = point[0], point[1]
if not hasattr(self, 'car_marker'):
if not self.car_marker:
self.car_marker = MapMarker(lat=lat, lon=lon, source='./images/car')
self.mapview.add_marker(self.car_marker)
else: