Skip to content

Commit

Permalink
Fix syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
J535D165 committed Aug 26, 2024
1 parent 834a7e3 commit 6fed343
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pyalex/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ def _flatten_kv(d, prefix=None, logical="+"):

return ",".join(t)
elif isinstance(d, list):
return f"{prefix}:{logical.join([f"{_quote_oa_value(i)}" for i in d])}"
list_str = logical.join([f"{_quote_oa_value(i)}" for i in d])
return f"{prefix}:{list_str}"
else:
return f"{prefix}:{_quote_oa_value(d)}"

Expand Down

0 comments on commit 6fed343

Please sign in to comment.