[P] Remove user_id from store <-> mapview interaction, fix update_db_record
This commit is contained in:
@@ -33,7 +33,7 @@ class MapViewApp(App):
|
||||
super().__init__(**kwargs)
|
||||
|
||||
self.mapview: MapView | None = None
|
||||
self.datasource = Datasource(user_id=1)
|
||||
self.datasource = Datasource()
|
||||
self.line_layers = dict()
|
||||
self.car_markers = dict()
|
||||
|
||||
@@ -162,7 +162,7 @@ class MapViewApp(App):
|
||||
elif clicked_marker in self.bump_markers:
|
||||
self.bump_markers.pop(self.bump_markers.index(clicked_marker))
|
||||
|
||||
self.datasource.update_db_records()
|
||||
self.datasource.update_db_record_visibility(clicked_marker_data.id)
|
||||
|
||||
def on_touch_down(self, widget, touch):
|
||||
if touch.button == "right":
|
||||
|
||||
Reference in New Issue
Block a user