From 14483ceec4c4d76b8f35f07f75ba55cb16326c9d Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 29 Dec 2024 21:49:48 +0100 Subject: [PATCH] latest videos --- src/library/mod.rs | 8 ++++++++ src/main.rs | 4 +++- src/pages/index.rs | 44 +++++++++++++++++++++++++++++++++++++++++--- 3 files changed, 52 insertions(+), 4 deletions(-) diff --git a/src/library/mod.rs b/src/library/mod.rs index 295c1d0..cd9a7da 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -159,6 +159,14 @@ impl Library { .unwrap() } + pub async fn get_newly_added(&self, n: i64) -> Vec