From 3fc28b72674cc921a1b0ebac8926369c3da291a6 Mon Sep 17 00:00:00 2001 From: Lukas Plank Date: Wed, 13 Nov 2024 12:02:57 +0100 Subject: [PATCH] fix(get_items_query_constructor): correct dict.get access --- rdfproxy/utils/sparql_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rdfproxy/utils/sparql_utils.py b/rdfproxy/utils/sparql_utils.py index dc78c55..0fbf613 100644 --- a/rdfproxy/utils/sparql_utils.py +++ b/rdfproxy/utils/sparql_utils.py @@ -68,7 +68,7 @@ def get_items_query_constructor( ) -> ItemsQueryConstructor: """Get the applicable query constructor function given a model class.""" - if (group_by_value := model.model_config.get("group_by"), None) is None: + if (group_by_value := model.model_config.get("group_by", None)) is None: return construct_ungrouped_pagination_query return partial(construct_grouped_pagination_query, group_by_value=group_by_value)