Skip to content

Commit

Permalink
Merge pull request #477 from battlecode/jerrym-fix-nonetype
Browse files Browse the repository at this point in the history
Fix nonetype on match score
  • Loading branch information
gaurav-arya authored Jan 8, 2023
2 parents d6dfbbc + ffe685a commit f53ab53
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 f53ab53

Please sign in to comment.