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 d2dac29 commit 9b1ad9d
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 @@ -431,7 +431,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) and len(keys > 1):
return dict_data

# Combine the items into a list of dictionaries
Expand Down

0 comments on commit 9b1ad9d

Please sign in to comment.