mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-04-18 16:28:55 +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
|
cfu.last_contest_id = rating_changes
|
||||||
.iter()
|
.first()
|
||||||
.last()
|
|
||||||
.map(|v| v.contest_id)
|
.map(|v| v.contest_id)
|
||||||
.or(cfu.last_contest_id);
|
.or(cfu.last_contest_id);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue