diff options
| author | nsfisis <nsfisis@gmail.com> | 2026-02-20 21:38:58 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2026-02-20 21:38:58 +0900 |
| commit | 85b7a14913c05b88b720fc546eaca5575ffe53fd (patch) | |
| tree | b19d66d3500bb4b697cf656a769a111411793cf3 /backend/db/querier.go | |
| parent | fa788237eb5649e08b2a38ec21689b481b10c073 (diff) | |
| download | phperkaigi-2026-albatross-85b7a14913c05b88b720fc546eaca5575ffe53fd.tar.gz phperkaigi-2026-albatross-85b7a14913c05b88b720fc546eaca5575ffe53fd.tar.zst phperkaigi-2026-albatross-85b7a14913c05b88b720fc546eaca5575ffe53fd.zip | |
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 <noreply@anthropic.com>
Diffstat (limited to 'backend/db/querier.go')
| -rw-r--r-- | backend/db/querier.go | 1 |
1 files changed, 1 insertions, 0 deletions
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) |
