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

Commit

Permalink
fix bug in get_team_flag_stats function
Browse files Browse the repository at this point in the history
  • Loading branch information
RamuniN committed Oct 17, 2023
1 parent 2b50c9b commit 630ed5b
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 630ed5b

Please sign in to comment.