Use first (last) contest id to update

This commit is contained in:
Natsu Kagami 2020-02-13 16:54:51 -05:00
parent bacb781896
commit b20c4868a7
Signed by: nki
GPG key ID: 73376E117CD20735

View file

@ -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);