diff --git a/Cargo.lock b/Cargo.lock index db8ed04e..65b92647 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -235,7 +235,7 @@ dependencies = [ [[package]] name = "blitz-dashboard" -version = "0.37.11" +version = "0.37.12" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 3c2e66ec..6774169e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "blitz-dashboard" -version = "0.37.11" +version = "0.37.12" authors = ["Pavel Perestoronin "] edition = "2018" resolver = "2" diff --git a/src/web/routes/player.rs b/src/web/routes/player.rs index 849f08ff..de6d3ad4 100644 --- a/src/web/routes/player.rs +++ b/src/web/routes/player.rs @@ -49,9 +49,9 @@ pub async fn get( set_user(¤t_info.nickname); insert_account_or_ignore(database, ¤t_info.base).await?; - let before = Utc::now() - Duration::from_std(period)?; let tanks = account_tanks_cache.get(¤t_info).await?; let tanks_delta = { + let before = Utc::now() - Duration::from_std(period)?; let old_tank_snapshots = retrieve_latest_tank_snapshots(database, account_id, &before).await?; subtract_tanks(&tanks, &old_tank_snapshots) @@ -255,15 +255,6 @@ pub async fn get( (tabs) div.container { - @if current_info.base.last_battle_time >= before && stats_delta.battles == 0 { - article.message.is-warning { - div.message-body { - strong { "Нет случайных боев за этот период." } - " Вероятно, игрок проводил время в других режимах." - } - } - } - div.tile.is-ancestor { div.tile."is-4".is-parent { div.tile.is-child.card {