Skip to content

Commit

Permalink
Update sparql.py
Browse files Browse the repository at this point in the history
  • Loading branch information
webb-ben committed Sep 16, 2024
1 parent 035d303 commit 66111bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pygeoapi_plugins/provider/sparql.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def combine_lists(dict_data: dict):

# Ensure all lists have the same length
length = len(dict_data[keys[0]])
if not all(len(dict_data[key]) == length for key in keys):
if not all(len(dict_data[key]) == length for key in keys) or length == 1:
LOGGER.debug('Returning un-mondified data')
return dict_data

Expand Down

0 comments on commit 66111bd

Please sign in to comment.