From b30cd5c1ca7ed4816ea49a8f81d715dba7cf2541 Mon Sep 17 00:00:00 2001 From: ElnuDev Date: Thu, 17 Feb 2022 21:26:10 -0800 Subject: [PATCH] Fix imageDelete bug --- src/commands/challenge.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/challenge.rs b/src/commands/challenge.rs index 72e289c..2888997 100644 --- a/src/commands/challenge.rs +++ b/src/commands/challenge.rs @@ -332,7 +332,7 @@ async fn imageDelete(ctx: &Context, msg: &Message, mut args: Args) -> CommandRes let mut submission_data = get_submission_data(); for (i, submission) in submission_data.iter_mut().enumerate() { if !is_matching_submission(&submission, &msg) { - break; + continue; } let mut images = submission["images"].as_array().unwrap().clone(); let image_count = images.len();