From c89f48e7693d8777e462a940a80c018d4eb6a0a7 Mon Sep 17 00:00:00 2001 From: kageru Date: Fri, 10 Feb 2023 09:49:11 +0100 Subject: [PATCH] increase max number of search results --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8c79731..e2d5291 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,9 @@ mod data; mod filter; mod parser; -const RESULT_LIMIT: usize = 100; +// The yearly tins have ~250 cards in them. +// I want to be higher than that so the page is usable as a set list. +const RESULT_LIMIT: usize = 300; static CARDS: LazyLock> = LazyLock::new(|| { let mut cards = serde_json::from_reader::<_, CardInfo>(BufReader::new(File::open("cards.json").expect("cards.json not found")))