Skip to content

Commit

Permalink
Fix usage of str shadows builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
davmlaw committed Dec 11, 2024
1 parent 5e0eebd commit 735626e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classification/templatetags/classification_tags.py
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ def criteria_strength(strength: CriteriaStrength):
def criteria_strength_td(strength: Union[CriteriaStrength, Collection[CriteriaStrength]]):
# going to display NM, NS, NA all the same
if isinstance(strength, list):
all_met_strengths = [str for str in strength if str.is_met]
all_met_strengths = [s for s in strength if s.is_met]
if len(all_met_strengths) > 1:
return {
"strengths": all_met_strengths
Expand Down

0 comments on commit 735626e

Please sign in to comment.