From 85b7a14913c05b88b720fc546eaca5575ffe53fd Mon Sep 17 00:00:00 2001 From: nsfisis Date: Fri, 20 Feb 2026 21:38:58 +0900 Subject: feat(admin): add bulk rejudge for game submissions Extract common rejudge logic into a helper method and add two new endpoints: rejudge-latest (per-user latest only) and rejudge-all. This allows re-running submissions in bulk after testcase changes. Co-Authored-By: Claude Opus 4.6 --- backend/db/querier.go | 1 + 1 file changed, 1 insertion(+) (limited to 'backend/db/querier.go') diff --git a/backend/db/querier.go b/backend/db/querier.go index 2b957ba..220a86c 100644 --- a/backend/db/querier.go +++ b/backend/db/querier.go @@ -31,6 +31,7 @@ type Querier interface { GetGameByID(ctx context.Context, gameID int32) (GetGameByIDRow, error) GetLatestState(ctx context.Context, arg GetLatestStateParams) (GetLatestStateRow, error) GetLatestStatesOfMainPlayers(ctx context.Context, gameID int32) ([]GetLatestStatesOfMainPlayersRow, error) + GetLatestSubmissionsByGameID(ctx context.Context, gameID int32) ([]Submission, error) GetProblemByID(ctx context.Context, problemID int32) (Problem, error) GetQualifyingRanking(ctx context.Context, arg GetQualifyingRankingParams) ([]GetQualifyingRankingRow, error) GetRanking(ctx context.Context, gameID int32) ([]GetRankingRow, error) -- cgit v1.3.1