Skip to content
This repository has been archived by the owner on Mar 18, 2023. It is now read-only.

Commit

Permalink
🔥 Remove the message, they seem to have fixed last_battle_time in t…
Browse files Browse the repository at this point in the history
…he API
  • Loading branch information
eigenein committed Aug 7, 2021
1 parent 3f0d794 commit d28d842
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "blitz-dashboard"
version = "0.37.11"
version = "0.37.12"
authors = ["Pavel Perestoronin <[email protected]>"]
edition = "2018"
resolver = "2"
Expand Down
11 changes: 1 addition & 10 deletions src/web/routes/player.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ pub async fn get(
set_user(&current_info.nickname);
insert_account_or_ignore(database, &current_info.base).await?;

let before = Utc::now() - Duration::from_std(period)?;
let tanks = account_tanks_cache.get(&current_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)
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d28d842

Please sign in to comment.