Skip to content

Commit

Permalink
Fix join_values_inline
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed May 17, 2024
1 parent ce6532a commit c1d86b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rdmo/views/templatetags/view_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def join_values_inline(values=None, separator=',', separator_last=', and', separ
return f"{values[0]['value_and_unit']} {separator_two} {values[1]['value_and_unit']}"

separators = [separator]*(len(values)-2) + [separator_last] + ['']
text = " ".join(i + j for i, j in zip(values, separators))
text = " ".join(v['value_and_unit'] + s for v,s in zip(values, separators))
return text


Expand Down

0 comments on commit c1d86b6

Please sign in to comment.