Fix imageDelete bug
This commit is contained in:
parent
2051b53db0
commit
b30cd5c1ca
1 changed files with 1 additions and 1 deletions
|
@ -332,7 +332,7 @@ async fn imageDelete(ctx: &Context, msg: &Message, mut args: Args) -> CommandRes
|
||||||
let mut submission_data = get_submission_data();
|
let mut submission_data = get_submission_data();
|
||||||
for (i, submission) in submission_data.iter_mut().enumerate() {
|
for (i, submission) in submission_data.iter_mut().enumerate() {
|
||||||
if !is_matching_submission(&submission, &msg) {
|
if !is_matching_submission(&submission, &msg) {
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
let mut images = submission["images"].as_array().unwrap().clone();
|
let mut images = submission["images"].as_array().unwrap().clone();
|
||||||
let image_count = images.len();
|
let image_count = images.len();
|
||||||
|
|
Loading…
Add table
Reference in a new issue