Skip to content

Commit

Permalink
fix my fkup
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Apr 5, 2024
1 parent 6c4409d commit 002619f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gameserver/models/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def __str__(self) -> str:
# todo optimize by using select_related
# self.objects.select_related("participation__team__name")
if self.participation.team is None:
return self.participation.user.username
return self.participation.participants.first().username
return self.participation.team.name

@classmethod
Expand Down

0 comments on commit 002619f

Please sign in to comment.