From 048490fd1553dc18c16b2a3d0da32bc9bef36597 Mon Sep 17 00:00:00 2001 From: Stefan Blumentrath Date: Tue, 6 Aug 2024 01:03:22 +0200 Subject: [PATCH] abstract_space_time_dataset: use keyword arguments in calls to get_registered_maps (#4068) --- python/grass/temporal/abstract_space_time_dataset.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/python/grass/temporal/abstract_space_time_dataset.py b/python/grass/temporal/abstract_space_time_dataset.py index f3b591977af..5c3e5068387 100644 --- a/python/grass/temporal/abstract_space_time_dataset.py +++ b/python/grass/temporal/abstract_space_time_dataset.py @@ -1556,7 +1556,12 @@ def get_registered_maps_as_objects( # use all columns rows = self.get_registered_maps( - None, where, order, dbif, spatial_extent, spatial_relation + columns=None, + where=where, + order=order, + dbif=dbif, + spatial_extent=spatial_extent, + spatial_relation=spatial_relation, ) if rows: @@ -2376,7 +2381,9 @@ def delete(self, dbif=None, execute=True): self.msgr.debug( 1, _("Drop map register table: %s") % (self.get_map_register()) ) - rows = self.get_registered_maps("id", None, None, dbif) + rows = self.get_registered_maps( + columns="id", where=None, order=None, dbif=dbif + ) # Unregister each registered map in the table if rows is not None: for row in rows: