mirror of
https://github.com/natsukagami/youmubot.git
synced 2025-05-24 17:20:49 +00:00
osu: Implement pins (#53)
Also format recent so attempt count is displayed
This commit is contained in:
parent
a8d1d11223
commit
6fbae89dfe
5 changed files with 167 additions and 51 deletions
|
@ -238,6 +238,7 @@ pub mod builders {
|
|||
pub(crate) enum UserScoreType {
|
||||
Recent,
|
||||
Best,
|
||||
Pin,
|
||||
}
|
||||
|
||||
pub struct UserScoreRequestBuilder {
|
||||
|
@ -273,6 +274,7 @@ pub mod builders {
|
|||
r = match self.score_type {
|
||||
UserScoreType::Recent => r.recent().include_fails(true),
|
||||
UserScoreType::Best => r.best(),
|
||||
UserScoreType::Pin => r.pinned(),
|
||||
};
|
||||
if let Some(mode) = self.mode {
|
||||
r = r.mode(mode.into());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue