Fix test submission name
This commit is contained in:
parent
feb1142d6e
commit
a36941c8af
1 changed files with 2 additions and 2 deletions
|
@ -111,7 +111,7 @@ pub async fn submit(ctx: Context<'_>, submission: serenity::Attachment) -> Resul
|
||||||
.map(|value| value.as_str().unwrap().to_owned())
|
.map(|value| value.as_str().unwrap().to_owned())
|
||||||
.collect();
|
.collect();
|
||||||
for (i, attachment) in attachments.iter().enumerate() {
|
for (i, attachment) in attachments.iter().enumerate() {
|
||||||
if attachment.filename.starts_with("_test_submission.") {
|
if attachment.filename.starts_with("test_submission_.") {
|
||||||
is_test = true;
|
is_test = true;
|
||||||
}
|
}
|
||||||
let extension;
|
let extension;
|
||||||
|
@ -160,7 +160,7 @@ pub async fn submit(ctx: Context<'_>, submission: serenity::Attachment) -> Resul
|
||||||
submitter_data.insert(String::from("username"), username.clone().into());
|
submitter_data.insert(String::from("username"), username.clone().into());
|
||||||
let mut images: Vec<String> = Vec::new();
|
let mut images: Vec<String> = Vec::new();
|
||||||
for (i, attachment) in attachments.iter().enumerate() {
|
for (i, attachment) in attachments.iter().enumerate() {
|
||||||
if attachment.filename.starts_with("_test_submission.") {
|
if attachment.filename.starts_with("test_submission_.") {
|
||||||
is_test = true;
|
is_test = true;
|
||||||
}
|
}
|
||||||
let extension;
|
let extension;
|
||||||
|
|
Loading…
Add table
Reference in a new issue