Skip to content

Commit

Permalink
Fix nonetype on match score
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mao committed Jan 8, 2023
1 parent d6dfbbc commit ffe685a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/siarnaq/api/compete/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ def save(self):
participant.score = score
MatchParticipant.objects.bulk_update(participants, ["score"])

self.instance.refresh_from_db()
invocation_serializer = self.fields["invocation"]
invocation_serializer.update(self.instance, self.validated_data["invocation"])
return self.instance
Expand Down

0 comments on commit ffe685a

Please sign in to comment.