From 0f6ac25d303abd719d8a3aec4b75ea024a80157d Mon Sep 17 00:00:00 2001 From: tomoron Date: Mon, 20 Apr 2026 15:22:23 +0200 Subject: [PATCH] 0 in stats when no files --- src/components/upload/stats.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/upload/stats.rs b/src/components/upload/stats.rs index 3d2e00d..10908bc 100644 --- a/src/components/upload/stats.rs +++ b/src/components/upload/stats.rs @@ -35,6 +35,7 @@ async fn get_upload_stats() -> Result { .first::<(Option, i64)>(&mut pool.get().unwrap())) { Ok((Some(val1),val2)) => (val1, val2), + Ok((None, val2)) => (0.into(), val2), _ => return HttpError::internal_server_error("wth ?") };