Skip to content
This repository has been archived by the owner on Feb 6, 2025. It is now read-only.

Commit

Permalink
Only return cleared songs for skill points
Browse files Browse the repository at this point in the history
  • Loading branch information
987123879113 committed Jun 8, 2024
1 parent 08e742d commit 474c3d6
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 0 deletions.
4 changes: 4 additions & 0 deletions services/gf10/db/score.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions services/gf10/sql/queries/score.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ FROM gf10dm9_scores
WHERE cardid = ?
AND game_type = ?
AND netid != -1
AND skill > 0
AND clear > 0
GROUP BY cardid, netid, seq_mode;

-- name: GetAllMaxSkillPointsByCardId :many
Expand All @@ -80,6 +82,8 @@ FROM gf10dm9_scores
WHERE cardid = ?
AND game_type = ?
AND netid != -1
AND skill > 0
AND clear > 0
GROUP BY cardid, netid;

-- name: GetFavorites :many
Expand Down
4 changes: 4 additions & 0 deletions services/gf11/db/score.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions services/gf11/sql/queries/score.sql
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ FROM gf11dm10_scores
WHERE gdid = ?
AND game_type = ?
AND netid != -1
AND skill > 0
AND clear > 0
GROUP BY gdid, netid, seq_mode;

-- name: GetAllMaxSkillPointsByGdid :many
Expand All @@ -80,6 +82,8 @@ FROM gf11dm10_scores
WHERE gdid = ?
AND game_type = ?
AND netid != -1
AND skill > 0
AND clear > 0
GROUP BY gdid, netid;

-- name: GetFavorites :many
Expand Down
4 changes: 4 additions & 0 deletions services/gf8puv/db/score.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions services/gf8puv/sql/queries/score.sql
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ SELECT musicid
FROM gf8dm7puv_scores
WHERE cardid = ?
AND game_type = ?
AND skill > 0
AND clear > 0
ORDER BY score DESC
LIMIT ?;

Expand All @@ -44,6 +46,8 @@ FROM (
FROM gf8dm7puv_scores
WHERE cardid = ?
AND game_type = ?
AND skill > 0
AND clear > 0
ORDER BY score DESC
LIMIT 30
) AS t;
2 changes: 2 additions & 0 deletions services/gf9/db/score.sql.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions services/gf9/sql/queries/score.sql
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,6 @@ FROM gf9dm8_scores
WHERE cardid = ?
AND game_type = ?
AND music_num != -1
AND skill > 0
AND clear > 0
GROUP BY cardid, music_num;

0 comments on commit 474c3d6

Please sign in to comment.