mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Don't show position in sequence if number is 0
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled
Some checks failed
Build docker image / Build-Docker-Image (push) Has been cancelled
This commit is contained in:
@@ -446,8 +446,8 @@ impl Format for Book {
|
||||
};
|
||||
|
||||
let position_prefix = match self.position {
|
||||
Some(0) | None => "".to_string(),
|
||||
Some(v) => format!("{v} | "),
|
||||
None => "".to_string(),
|
||||
};
|
||||
|
||||
format!("{position_prefix}📖 {title} | {lang}{year_part}{pages_count}\n")
|
||||
|
||||
Reference in New Issue
Block a user