Fix filter issue (add period at end)

master
Tait Hoyem 1 year ago
parent 4c677518a0
commit b821be5913

@ -64,11 +64,11 @@ pub fn shot_player_name(shot: &ShotDetails) -> ::askama::Result<String> {
Ok(format!("{} {}", initials(&shot.player_first_names)?, &shot.player_last_name))
}
pub fn initials(first_names: &str) -> ::askama::Result<String> {
Ok(first_names
Ok(format!("{}.", first_names
.split_whitespace()
.map(|name| &name[0..1])
.collect::<Vec<_>>()
.join("."))
.join(".")))
}
pub fn nullable<T: std::fmt::Display>(ot: &Option<T>) -> ::askama::Result<String> {
match ot {

@ -95,7 +95,7 @@ use sqlx::{Pool, Postgres};
use std::net::SocketAddr;
use std::sync::Arc;
const VERSION: &str = "0.3.5";
const VERSION: &str = "0.4.0-beta";
#[derive(Template, TemplateUrl)]
#[template(path = "language_list.html")]

Loading…
Cancel
Save