Skip to content

Commit

Permalink
Hey I missed one!
Browse files Browse the repository at this point in the history
The hole/lang counts on a golfer profile shouldn't include experimental
holes (or eventually langs).

Updates code-golf#893
  • Loading branch information
JRaspass committed Nov 20, 2024
1 parent 4db019d commit 5c87f4f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions golfer/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ func GetInfo(db *sqlx.DB, name string) *GolferInfo {
COALESCE(diamond, 0) diamond,
COALESCE(gold, 0) gold,
(SELECT COUNT(DISTINCT hole)
FROM solutions
WHERE user_id = id AND NOT FAILING) holes,
FROM stable_passing_solutions
WHERE user_id = id) holes,
ARRAY(
SELECT hole
FROM authors
Expand All @@ -126,8 +126,8 @@ func GetInfo(db *sqlx.DB, name string) *GolferInfo {
) holes_authored,
id,
(SELECT COUNT(DISTINCT lang)
FROM solutions
WHERE user_id = id AND NOT FAILING) langs,
FROM stable_passing_solutions
WHERE user_id = id) langs,
login name,
COALESCE(bytes.points, 0) bytes_points,
COALESCE(chars.points, 0) chars_points,
Expand Down

0 comments on commit 5c87f4f

Please sign in to comment.