From 270283eb61716fa51c0c9b96ef3e00d23eb94dc9 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Thu, 20 Jun 2024 16:08:57 +0200 Subject: add more info --- src/info.rs | 16 ++++++++++------ src/main.rs | 1 - src/state.rs | 8 +++++++- 3 files changed, 17 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/info.rs b/src/info.rs index f0cda28..d082d4d 100644 --- a/src/info.rs +++ b/src/info.rs @@ -20,7 +20,9 @@ pub async fn r_index<'a>(state: &State>) -> MyResult(state: &State>) -> MyResult(state: &State>) -> MyResult(state: &State>) -> MyResult 16 { + while d + .last() + .map(|l| l.2 < self.config.leaderboard_weight_threshold) + .unwrap_or_default() + || d.len() > 64 + { d.pop(); } -- cgit v1.2.3-70-g09d2