Merge pull request 'allow m in dd' (#797) from trim-ergo into staging
Reviewed-on: #797
This commit is contained in:
commit
22bb79bfbd
@ -281,8 +281,13 @@ async fn new_dozen(
|
||||
if let Err(e) = data.proof.move_copy_to(file_path).await {
|
||||
eprintln!("Failed to persist file: {:?}", e);
|
||||
}
|
||||
let result = data.result.trim_start_matches(|c| c == '0' || c == ' ');
|
||||
let result = format_time(result);
|
||||
let result = data.result.trim();
|
||||
let result = if result.len() == 4 {
|
||||
result.to_string()
|
||||
}else{
|
||||
let result = result.trim_start_matches(|c| c == '0' || c == ' ');
|
||||
format_time(result)
|
||||
};
|
||||
|
||||
sqlx::query!(
|
||||
"UPDATE user SET dirty_dozen = ? where id = ?",
|
||||
|
Loading…
Reference in New Issue
Block a user