server: remove unprocessed appropriately

This commit is contained in:
Bill Thiede 2025-04-22 22:41:09 -07:00
parent 1bbebad01b
commit 4b15e71893

View File

@ -1028,11 +1028,6 @@ pub async fn label_unprocessed(
.push(id.clone());
}
//nm.tag_remove("unprocessed", &id)?;
let t = "unprocessed".to_string();
rm_mutations
.entry(t)
.or_insert_with(|| Vec::new())
.push(id.clone());
} else {
if add_tags.is_empty() {
let t = "Grey".to_string();
@ -1041,6 +1036,11 @@ pub async fn label_unprocessed(
.or_insert_with(|| Vec::new())
.push(id.clone());
}
let t = "unprocessed".to_string();
rm_mutations
.entry(t)
.or_insert_with(|| Vec::new())
.push(id.clone());
}
}
println!("Adding {} distinct labels", add_mutations.len());