This commit is contained in:
2025-08-02 19:59:39 +02:00
parent 01b93e2090
commit bda1b53ba1

View File

@@ -1,7 +1,7 @@
use crate::Backend;
pub(crate) struct Rank {
pub(crate) rank: usize,
pub(crate) rank: i64,
pub(crate) name: Option<String>,
pub(crate) uuid: String,
pub(crate) amount: i64,
@@ -9,6 +9,7 @@ pub(crate) struct Rank {
impl Backend {
pub(crate) async fn highscore(&self) -> Vec<Rank> {
// TODO: proper rank calculation
match self {
Backend::Sqlite(db) => sqlx::query_as!(
Rank,