From 4b15e718939b77a20197804699f61d097d1e3b3a Mon Sep 17 00:00:00 2001 From: Bill Thiede Date: Tue, 22 Apr 2025 22:41:09 -0700 Subject: [PATCH] server: remove unprocessed appropriately --- server/src/nm.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/src/nm.rs b/server/src/nm.rs index 22bfbee..5c1c2c0 100644 --- a/server/src/nm.rs +++ b/server/src/nm.rs @@ -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());