add back list length as pb max

This commit is contained in:
Troy 2025-01-14 15:32:30 +00:00
parent 14c99e6380
commit c0ecec680f
Signed by: troy
GPG key ID: DFC06C02ED3B4711

View file

@ -13,7 +13,12 @@ async fn main() -> Result<(), Box<dyn Error>> {
let (count, skip_amount, list) = config::collate_values(args, &config);
if let Some(values) = config.lists.get(&list) {
let pb = indicatif::ProgressBar::new(12);
let pb = indicatif::ProgressBar::new(
values
.len()
.try_into()
.expect("Could not convert list length"),
);
let all_items = data::run_tasks(values.to_vec(), count, skip_amount, &pb).await;
pb.finish_and_clear();