Compare commits

..

No commits in common. "22bb79bfbdfb273580fe1b10c8e4ccb47191d7e6" and "eba4b779839eca0164457dd242ec34a3ccb762e0" have entirely different histories.

View File

@ -281,13 +281,8 @@ async fn new_dozen(
if let Err(e) = data.proof.move_copy_to(file_path).await { if let Err(e) = data.proof.move_copy_to(file_path).await {
eprintln!("Failed to persist file: {:?}", e); eprintln!("Failed to persist file: {:?}", e);
} }
let result = data.result.trim(); let result = data.result.trim_start_matches(|c| c == '0' || c == ' ');
let result = if result.len() == 4 { let result = format_time(result);
result.to_string()
}else{
let result = result.trim_start_matches(|c| c == '0' || c == ' ');
format_time(result)
};
sqlx::query!( sqlx::query!(
"UPDATE user SET dirty_dozen = ? where id = ?", "UPDATE user SET dirty_dozen = ? where id = ?",