From 81c25244e6b205f8e450231ba1f9866ba8b1851d Mon Sep 17 00:00:00 2001 From: Amir Hossein Habibi Date: Sun, 12 Oct 2025 22:41:18 +0330 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20chore(Cargo):=20Bump=20version=20to?= =?UTF-8?q?=200.4.2=20=F0=9F=8E=A8=20refactor(templates):=20Format=20total?= =?UTF-8?q?=20requests=20with=20locale=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.lock | 2 +- Cargo.toml | 2 +- templates/index.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index be5e404..396c132 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2471,7 +2471,7 @@ dependencies = [ [[package]] name = "rust_rest_api" -version = "0.4.1" +version = "0.4.2" dependencies = [ "anyhow", "askama", diff --git a/Cargo.toml b/Cargo.toml index cf2d77f..22ed254 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "rust_rest_api" -version = "0.4.1" +version = "0.4.2" edition = "2024" license = "MIT" authors = ["Habibi-Dev"] diff --git a/templates/index.html b/templates/index.html index b618190..106758a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -71,7 +71,7 @@ } ], usage: { - total_requests: "{{ stats.total }}", + total_requests: Number("{{ stats.total }}").toLocaleString(), by_endpoint: { "/health": "{{ stats.health.unwrap_or(0) }}", "/time": "{{ stats.time.unwrap_or(0) }}",