From 889dc4f87b05d838b25428478a8c42dac454a5cf Mon Sep 17 00:00:00 2001 From: fxqnlr Date: Mon, 7 Nov 2022 22:29:35 +0100 Subject: finished rusqlite; added all db tests --- src/commands/download.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands/download.rs') diff --git a/src/commands/download.rs b/src/commands/download.rs index 05c54cb..993294b 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs @@ -4,12 +4,12 @@ use reqwest::Client; use futures_util::StreamExt; -use crate::{get_current_list, config::Cfg, db::get_dl_links}; +use crate::{get_current_list, config::Cfg, db::userlist_get_all_downloads}; pub async fn download(config: Cfg) -> Result<(), Box> { let list = get_current_list(config.clone())?; - let links = get_dl_links(config.clone(), list)?; + let links = userlist_get_all_downloads(config.clone(), list.id)?; download_links(config, links).await?; -- cgit v1.2.3