Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions patchwork/templatetags/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,9 @@ def patch_checks(patch):
counts = patch.check_count

check_elements = []
use_color = True
for state in required[::-1]:
if counts[state]:
if use_color:
use_color = False
color = dict(Check.STATE_CHOICES).get(state)
else:
color = ''
color = dict(Check.STATE_CHOICES).get(state)
count = str(counts[state])
else:
color = ''
Expand Down
Loading