From b20c4868a74374272d3baa3dc236476eafb62095 Mon Sep 17 00:00:00 2001 From: Natsu Kagami Date: Thu, 13 Feb 2020 16:54:51 -0500 Subject: [PATCH] Use first (last) contest id to update --- youmubot-cf/src/announcer.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/youmubot-cf/src/announcer.rs b/youmubot-cf/src/announcer.rs index df9146f..3729423 100644 --- a/youmubot-cf/src/announcer.rs +++ b/youmubot-cf/src/announcer.rs @@ -90,8 +90,7 @@ fn update_user( }; cfu.last_contest_id = rating_changes - .iter() - .last() + .first() .map(|v| v.contest_id) .or(cfu.last_contest_id);