From fecb42838c177682cdd038efbe9af1282372ab5e Mon Sep 17 00:00:00 2001
From: Jeason <1710884619@qq.com>
Date: Wed, 18 Mar 2026 09:51:27 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
frontend/templates/account_detail.html | 2 +-
frontend/templates/dashboard.html | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/frontend/templates/account_detail.html b/frontend/templates/account_detail.html
index 5229bd6..b3e2f7a 100644
--- a/frontend/templates/account_detail.html
+++ b/frontend/templates/account_detail.html
@@ -155,7 +155,7 @@
‹ 上一页
{% endif %}
- {% for i in range(max(1, p - 2), min(tp, p + 2) + 1) %}
+ {% for i in range([1, p - 2]|max, [tp, p + 2]|min + 1) %}
{% if i == p %}{{ i }}
{% else %}{{ i }}{% endif %}
{% endfor %}
diff --git a/frontend/templates/dashboard.html b/frontend/templates/dashboard.html
index 24ef5aa..32c24ca 100644
--- a/frontend/templates/dashboard.html
+++ b/frontend/templates/dashboard.html
@@ -148,7 +148,7 @@
‹ 上一页
{% endif %}
- {% for i in range(max(1, p - 2), min(tp, p + 2) + 1) %}
+ {% for i in range([1, p - 2]|max, [tp, p + 2]|min + 1) %}
{% if i == p %}{{ i }}
{% else %}{{ i }}{% endif %}
{% endfor %}