Skip to content

Commit

Permalink
fix #109
Browse files Browse the repository at this point in the history
  • Loading branch information
hypsug0 committed Feb 7, 2024
1 parent a93e1ef commit 2f5d052
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin_qgis_lpo/commons/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,8 @@ def sql_taxons_filter_builder(taxons_dict: Dict) -> Optional[str]:
rank_filters = []
for key, value in taxons_dict.items():
if value:
rank_filters.append(f"{key} in {str(tuple(value))}")
value_list = ",".join([f"'{v}'" for v in value])
rank_filters.append(f"{key} in ({value_list})")
if len(rank_filters) > 0:
taxons_where = f"({' or '.join(rank_filters)})"
return taxons_where
Expand Down

0 comments on commit 2f5d052

Please sign in to comment.