Skip to content

Commit

Permalink
再展開中の単語の表示を修正した
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryoga Saito committed Dec 16, 2023
1 parent 908b740 commit 7ec6b1f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/bot/commands/redeploy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,13 @@ impl Bot {
None => continue,
};

let name = &status.problem_code;
let name = status.problem_code.clone();
let problem_name = self
.problems
.iter()
.find(|problem| problem.code == status.problem_code)
.map(|problem| format!("{}: {}", name, problem.name))
.unwrap_or_else(|| name);

let value = match status.last_redeploy_completed_at {
Some(completed_at) => {
Expand All @@ -390,7 +396,7 @@ impl Bot {
},
};

e.field(name, value, false);
e.field(problem_name, value, false);
}
e
})
Expand Down

0 comments on commit 7ec6b1f

Please sign in to comment.