Skip to content

Commit

Permalink
abstract_space_time_dataset: use keyword arguments in calls to get_re…
Browse files Browse the repository at this point in the history
…gistered_maps (OSGeo#4068)
  • Loading branch information
ninsbl authored Aug 5, 2024
1 parent 2f44fee commit 048490f
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions python/grass/temporal/abstract_space_time_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 048490f

Please sign in to comment.