improvements, styling, additional infos
Some checks are pending
CI/CD Pipeline / deploy-staging (push) Blocked by required conditions
CI/CD Pipeline / deploy-main (push) Blocked by required conditions
CI/CD Pipeline / test (push) Successful in 11m13s

This commit is contained in:
2024-09-04 19:40:52 +03:00
parent 6df24f0f22
commit b40850626b
6 changed files with 192 additions and 107 deletions

View File

@ -1,5 +1,4 @@
use serde::Serialize;
use sqlx::SqlitePool;
#[derive(Serialize, PartialEq, Debug)]
pub(crate) enum Level {
@ -31,7 +30,7 @@ impl Level {
} else if km < Level::GOLD.required_km() {
Level::GOLD
} else if km < Level::DIAMOND.required_km() {
Level::BRONZE
Level::DIAMOND
} else {
Level::DONE
}