Skip to content

Commit

Permalink
fix(get_items_query_constructor): correct dict.get access
Browse files Browse the repository at this point in the history
  • Loading branch information
lu-pl committed Nov 13, 2024
1 parent d8e307b commit 3fc28b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdfproxy/utils/sparql_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 3fc28b7

Please sign in to comment.