Skip to content

Commit

Permalink
refactor: rename a field in the response of get_user_fsms_status
Browse files Browse the repository at this point in the history
  • Loading branch information
AmooHashem committed Oct 26, 2024
1 parent 65e4ec0 commit b1cc1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/fsm/views/program_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def get_user_fsms_status(self, request, slug=None):
players = get_players(user, fsm)
status.append({
'fsm_id': fsm.id,
'has_active_player': players.filter(finished_at__isnull=False).exists(),
'has_playing_player': players.filter(finished_at__isnull=False).exists(),
'count_of_playing': players.count(),
'is_mentor': user in fsm.mentors.all(),
})
Expand Down

0 comments on commit b1cc1aa

Please sign in to comment.