diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-03-20 20:44:49 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-03-20 20:44:49 +0900 |
| commit | 23315cc2e0c98510ffca5adf06a2152945e51756 (patch) | |
| tree | b5a743ff2adbcd5ccafeb06107b186218d201e18 /backend/db/query.sql.go | |
| parent | 4a2438201d0e365a873632a1ffcf913661eacbec (diff) | |
| download | phperkaigi-2025-albatross-23315cc2e0c98510ffca5adf06a2152945e51756.tar.gz phperkaigi-2025-albatross-23315cc2e0c98510ffca5adf06a2152945e51756.tar.zst phperkaigi-2025-albatross-23315cc2e0c98510ffca5adf06a2152945e51756.zip | |
fix(backend): fix online qualifying ranking
Diffstat (limited to 'backend/db/query.sql.go')
| -rw-r--r-- | backend/db/query.sql.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/db/query.sql.go b/backend/db/query.sql.go index a478b69..abf2631 100644 --- a/backend/db/query.sql.go +++ b/backend/db/query.sql.go @@ -276,6 +276,7 @@ func (q *Queries) GetLatestStatesOfMainPlayers(ctx context.Context, gameID int32 const getQualifyingRanking = `-- name: GetQualifyingRanking :many SELECT u.username AS username, + u.label AS user_label, s1.code_size AS code_size_1, s2.code_size AS code_size_2, (s1.code_size + s2.code_size) AS total_code_size, @@ -297,6 +298,7 @@ type GetQualifyingRankingParams struct { type GetQualifyingRankingRow struct { Username string + UserLabel *string CodeSize1 int32 CodeSize2 int32 TotalCodeSize int32 @@ -315,6 +317,7 @@ func (q *Queries) GetQualifyingRanking(ctx context.Context, arg GetQualifyingRan var i GetQualifyingRankingRow if err := rows.Scan( &i.Username, + &i.UserLabel, &i.CodeSize1, &i.CodeSize2, &i.TotalCodeSize, |
