Fix leaderboard case where HTML file doesn't exist yet
This commit is contained in:
parent
ddef4f326b
commit
463808cb75
1 changed files with 1 additions and 0 deletions
|
@ -407,6 +407,7 @@ pub async fn leaderboard(ctx: &Context) -> CommandResult {
|
||||||
}
|
}
|
||||||
leaderboard_html.push_str("</table>");
|
leaderboard_html.push_str("</table>");
|
||||||
let mut file = std::fs::OpenOptions::new()
|
let mut file = std::fs::OpenOptions::new()
|
||||||
|
.create(true)
|
||||||
.write(true)
|
.write(true)
|
||||||
.open(env::var("LEADERBOARD").unwrap())
|
.open(env::var("LEADERBOARD").unwrap())
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
Loading…
Add table
Reference in a new issue