mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-16 07:18:54 +00:00
Use first (last) contest id to update
This commit is contained in:
parent
bacb781896
commit
b20c4868a7
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue