Skip to content

Commit

Permalink
fix: metrics data update or get incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-lei committed May 15, 2024
1 parent 2bfd7a3 commit 670f770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/challenges/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ def challenge_phase_detail(request, challenge_pk, pk):

response_data = serializer.data
challenge_phase_split_qs = ChallengePhaseSplit.objects.filter(
challenge_phase__challenge__pk=challenge.pk
challenge_phase__pk=pk
)
if challenge_phase_split_qs:
challenge_phase_split = challenge_phase_split_qs.first()
Expand Down Expand Up @@ -4681,7 +4681,7 @@ def create_or_update_challenge_phase(request, challenge_host_team_pk, challenge_
try:
challenge_phase.save()
challenge_phase_split_qs = ChallengePhaseSplit.objects.filter(
challenge_phase__challenge__pk=challenge_pk
challenge_phase__pk=challenge_phase_pk,
)
if challenge_phase_split_qs:
challenge_phase_split = challenge_phase_split_qs.first()
Expand Down

0 comments on commit 670f770

Please sign in to comment.