From 3055b585cca7c79410f862d063fe1e19af0c68e4 Mon Sep 17 00:00:00 2001 From: yshtcn Date: Mon, 8 Jul 2024 23:19:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BB=A3=E7=A0=81=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E5=A2=9E=E5=8A=A0=E4=BA=86=E5=BE=85=E5=8F=91=E9=80=81?= =?UTF-8?q?=E6=9D=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ServerChanPush2TelegramBot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ServerChanPush2TelegramBot.py b/ServerChanPush2TelegramBot.py index 69da1f0..0dfef27 100644 --- a/ServerChanPush2TelegramBot.py +++ b/ServerChanPush2TelegramBot.py @@ -217,7 +217,9 @@ def index(): if TestStatus is None: return jsonify({"error": error_list}), 400 else: - return jsonify({"ok": "the test passed"}), 200 + pending_messages = read_pending_messages() + pending_count = len(pending_messages) + return jsonify({"ok": "the test passed", "pending_messages_count": pending_count}), 200 pending_messages = read_pending_messages()