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

View File

@@ -1,6 +1,7 @@
use crate::Backend;
pub(crate) struct Rank {
pub(crate) rank: usize,
pub(crate) name: Option<String>,
pub(crate) uuid: String,
pub(crate) amount: i64,
@@ -12,6 +13,7 @@ impl Backend {
Backend::Sqlite(db) => sqlx::query_as!(
Rank,
"SELECT
1 as rank,
c.name,
c.uuid,
COUNT(s.client_uuid) as amount