Fix leaderboard truncation
This commit is contained in:
parent
eccd55542d
commit
677a97d5cc
1 changed files with 1 additions and 0 deletions
|
@ -440,6 +440,7 @@ pub async fn leaderboard(ctx: &Context<'_>) -> Result<(), Error> {
|
|||
let mut file = std::fs::OpenOptions::new()
|
||||
.create(true)
|
||||
.write(true)
|
||||
.truncate(true)
|
||||
.open(env::var("LEADERBOARD").unwrap())
|
||||
.unwrap();
|
||||
file.write_all(leaderboard_html.as_bytes())?;
|
||||
|
|
Loading…
Add table
Reference in a new issue