aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/query.sql
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-08-12 01:23:54 +0900
committernsfisis <nsfisis@gmail.com>2024-08-12 01:23:54 +0900
commit5964fa404909550a2dd42a75633fef223fdb05fb (patch)
treed282d098690d0a85930d89ff68f47507c0eb5d7c /backend/query.sql
parent8c7d882dfa67bcef37a4f39be6f1ca57f160b816 (diff)
downloadiosdc-japan-2024-albatross-5964fa404909550a2dd42a75633fef223fdb05fb.tar.gz
iosdc-japan-2024-albatross-5964fa404909550a2dd42a75633fef223fdb05fb.tar.zst
iosdc-japan-2024-albatross-5964fa404909550a2dd42a75633fef223fdb05fb.zip
feat: do not show preliminary score
Diffstat (limited to 'backend/query.sql')
-rw-r--r--backend/query.sql5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/query.sql b/backend/query.sql
index 408bf2d..25eb4df 100644
--- a/backend/query.sql
+++ b/backend/query.sql
@@ -78,6 +78,11 @@ INSERT INTO submissions (game_id, user_id, code, code_size, code_hash)
VALUES ($1, $2, $3, $4, $5)
RETURNING submission_id;
+-- name: GetSubmissionCodeSizeByID :one
+SELECT code_size FROM submissions
+WHERE submission_id = $1
+LIMIT 1;
+
-- name: ListTestcasesByGameID :many
SELECT * FROM testcases
WHERE testcases.problem_id = (SELECT problem_id FROM games WHERE game_id = $1)