Skip to content

Commit 1e61ba5

Browse files
committed
Revert changes to I'm Feeling Lucky
They didn't work and my ideas to fix them were much slower than the original.
1 parent 9d0e52e commit 1e61ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web/releases.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ pub fn search_handler(req: &mut Request) -> IronResult<Response> {
535535
INNER JOIN releases
536536
ON crates.latest_version_id = releases.id
537537
WHERE github_stars >= 100 AND rustdoc_status = true
538-
OFFSET FLOOR(RANDOM() * SELECT COUNT(*) FROM crates) LIMIT 1",
538+
OFFSET FLOOR(RANDOM() * 280) LIMIT 1",
539539
&[]
540540
),
541541
);

0 commit comments

Comments
 (0)