aboutsummaryrefslogtreecommitdiff
path: root/logic/src/stats.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-04-30 11:46:28 +0200
committermetamuffin <metamuffin@disroot.org>2025-04-30 11:46:28 +0200
commit35ae80f183904466667af73c7921b4ade399569a (patch)
tree3a7eec95debbd9ba292436ff989742b8a9b1dff4 /logic/src/stats.rs
parentd6a039a10ac3c81d410beb9b648d29524ca1e278 (diff)
downloadjellything-35ae80f183904466667af73c7921b4ade399569a.tar
jellything-35ae80f183904466667af73c7921b4ade399569a.tar.bz2
jellything-35ae80f183904466667af73c7921b4ade399569a.tar.zst
split base into asset_token and db
Diffstat (limited to 'logic/src/stats.rs')
-rw-r--r--logic/src/stats.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/logic/src/stats.rs b/logic/src/stats.rs
index 2569180..2e962e2 100644
--- a/logic/src/stats.rs
+++ b/logic/src/stats.rs
@@ -6,11 +6,11 @@
use crate::session::Session;
use anyhow::Result;
-use jellybase::database::Database;
use jellycommon::{
Node, NodeKind, Visibility,
api::{ApiStatsResponse, StatsBin},
};
+use jellydb::Database;
use std::collections::BTreeMap;
pub fn stats(db: &Database, session: &Session) -> Result<ApiStatsResponse> {
@@ -34,7 +34,6 @@ pub fn stats(db: &Database, session: &Session) -> Result<ApiStatsResponse> {
}
}
}
-
}
let mut total = StatsBin::default();