diff options
author | fxqnlr <[email protected]> | 2022-11-07 22:29:35 +0100 |
---|---|---|
committer | fxqnlr <[email protected]> | 2022-11-07 22:29:35 +0100 |
commit | 889dc4f87b05d838b25428478a8c42dac454a5cf (patch) | |
tree | c4b09ae53a74a7f0afc1e095a4b66a1b00e67244 /src/commands/download.rs | |
parent | ea50af892c4268ae06f6df40ee435eadd076228d (diff) | |
download | modlist-889dc4f87b05d838b25428478a8c42dac454a5cf.tar modlist-889dc4f87b05d838b25428478a8c42dac454a5cf.tar.gz modlist-889dc4f87b05d838b25428478a8c42dac454a5cf.zip |
finished rusqlite; added all db tests
Diffstat (limited to 'src/commands/download.rs')
-rw-r--r-- | src/commands/download.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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; | |||
4 | 4 | ||
5 | use futures_util::StreamExt; | 5 | use futures_util::StreamExt; |
6 | 6 | ||
7 | use crate::{get_current_list, config::Cfg, db::get_dl_links}; | 7 | use crate::{get_current_list, config::Cfg, db::userlist_get_all_downloads}; |
8 | 8 | ||
9 | pub async fn download(config: Cfg) -> Result<(), Box<dyn std::error::Error>> { | 9 | pub async fn download(config: Cfg) -> Result<(), Box<dyn std::error::Error>> { |
10 | let list = get_current_list(config.clone())?; | 10 | let list = get_current_list(config.clone())?; |
11 | 11 | ||
12 | let links = get_dl_links(config.clone(), list)?; | 12 | let links = userlist_get_all_downloads(config.clone(), list.id)?; |
13 | 13 | ||
14 | download_links(config, links).await?; | 14 | download_links(config, links).await?; |
15 | 15 | ||