fix(lobby): promote zero-score reveals to scoreboard
Some checks failed
CI / test-and-quality (push) Failing after 2m35s
CI / test-and-quality (pull_request) Failing after 2m36s

This commit is contained in:
2026-03-16 03:01:02 +00:00
parent 3706bc3b1c
commit bfa4ab859c
2 changed files with 62 additions and 7 deletions

View File

@@ -247,13 +247,6 @@ def _maybe_promote_reveal_to_scoreboard(session: GameSession) -> GameSession:
if current_round_question is None:
return session
has_round_scores = ScoreEvent.objects.filter(
session=session,
meta__round_question_id=current_round_question.id,
).exists()
if not has_round_scores:
return session
with transaction.atomic():
locked_session = GameSession.objects.select_for_update().get(pk=session.pk)
if locked_session.status != GameSession.Status.REVEAL: