Skip to content

Commit

Permalink
fix: #123 抢票停不下来
Browse files Browse the repository at this point in the history
  • Loading branch information
mikumifa committed Jun 16, 2024
1 parent 3db0f10 commit 41742b3
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tab/go.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -435,5 +429,5 @@ def stop():
stop_btn.click(
fn=stop,
inputs=None,
outputs=[go_ui, stop_btn, qr_image, gt_row],
outputs=None,
)

0 comments on commit 41742b3

Please sign in to comment.