Skip to content

Commit 03c321f

Browse files
pietroalbiniJoshua Nelson
authored and
Joshua Nelson
committed
releases: fix "I am feeling lucky" after the graphql switch
1 parent 7551ea0 commit 03c321f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/web/releases.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,9 @@ pub fn search_handler(req: &mut Request) -> IronResult<Response> {
530530
FROM crates
531531
INNER JOIN releases
532532
ON crates.latest_version_id = releases.id
533-
WHERE github_stars >= 100 AND rustdoc_status = true
533+
LEFT JOIN github_repos
534+
ON releases.github_repo = github_repos.id
535+
WHERE github_repos.stars >= 100 AND rustdoc_status = true
534536
OFFSET FLOOR(RANDOM() * 280) LIMIT 1",
535537
&[]
536538
),

0 commit comments

Comments
 (0)