From 41742b30f16bca818a5eab0b4acff916d9a01327 Mon Sep 17 00:00:00 2001 From: mikumifa <1055069518@qq.com> Date: Sun, 16 Jun 2024 23:52:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20#123=20=E6=8A=A2=E7=A5=A8=E5=81=9C?= =?UTF-8?q?=E4=B8=8D=E4=B8=8B=E6=9D=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tab/go.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tab/go.py b/tab/go.py index 40ceb8e..c6c98fe 100644 --- a/tab/go.py +++ b/tab/go.py @@ -418,14 +418,8 @@ def receive_geetest_result(res): ) def stop(): - global isRunning + nonlocal isRunning isRunning = False - return [ - gr.update(value="抢票结束", visible=True), - gr.update(visible=False), - gr.update(), - gr.update(), - ] go_btn.click( fn=start_go, @@ -435,5 +429,5 @@ def stop(): stop_btn.click( fn=stop, inputs=None, - outputs=[go_ui, stop_btn, qr_image, gt_row], + outputs=None, )