Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

FS-3473 fix bug in get_team_flag_stats function #441

Merged
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
6 changes: 3 additions & 3 deletions app/blueprints/assessments/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ def create_team_dict(team_name):

for team in team_flag_stats:
if team["team_name"] == allocated_team:
if latest_status == FlagType.RAISED:
if latest_status == FlagType.RAISED.value:
team["raised"] += 1
elif latest_status == FlagType.STOPPED:
elif latest_status == FlagType.STOPPED.value:
team["stopped"] += 1
elif latest_status == FlagType.RESOLVED:
elif latest_status == FlagType.RESOLVED.value:
team["resolved"] += 1

return team_flag_stats
Expand Down