Compare commits

...

2 Commits

Author SHA1 Message Date
9d3b1d522b Merge pull request 'allow for smaller m' (#800) from trim-ergo into main
All checks were successful
CI/CD Pipeline / test (push) Successful in 10m48s
CI/CD Pipeline / deploy-staging (push) Has been skipped
CI/CD Pipeline / deploy-main (push) Successful in 5m2s
Reviewed-on: #800
2024-11-11 23:12:33 +01:00
656c0b99ea allow for smaller m
Some checks failed
CI/CD Pipeline / deploy-staging (push) Has been cancelled
CI/CD Pipeline / deploy-main (push) Has been cancelled
CI/CD Pipeline / test (push) Has been cancelled
2024-11-11 23:11:46 +01:00

View File

@ -281,12 +281,11 @@ 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 = if result.contains(":") || result.contains(".") {
result.to_string()
}else{
let result = result.trim_start_matches(|c| c == '0' || c == ' ');
format_time(result) format_time(result)
}else{
result.to_string()
}; };
sqlx::query!( sqlx::query!(