Skip to content

Commit

Permalink
Fix stripping bug
Browse files Browse the repository at this point in the history
  • Loading branch information
anorthall committed Mar 31, 2023
1 parent b24e4aa commit fa284f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/logger/statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def sort_comma_separated_list(qs, value, limit=10):
common = {}
for v in values:
split_list = v[value].split(",")
for v in split_list:
trimmed = v.strip()
for split_value in split_list:
trimmed = split_value.strip()
if not trimmed:
continue
if v in common:
if trimmed in common:
common[trimmed] += 1
else:
common[trimmed] = 1
Expand Down

0 comments on commit fa284f5

Please sign in to comment.