Skip to content

Commit

Permalink
Update settings.py
Browse files Browse the repository at this point in the history
修复使用URL获取的信息生成抢票配置时直接使用URL与项目ID比较
让ticket_id过一遍extract_id_from_url
  • Loading branch information
WittF authored Jun 13, 2024
1 parent e793724 commit 0b9aa09
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tab/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def on_submit_all(ticket_id, ticket_info, people_indices, people_buyer_index, ad
ticket_cur = ticket_value[ticket_info]
people_cur = [buyer_value[item] for item in people_indices]
people_buyer_cur = buyer_value[people_buyer_index]
ticket_id = extract_id_from_url(ticket_id)
if str(ticket_id) != str(ticket_cur["project_id"]):
return [gr.update(value="当前票信息已更改,请点击“获取票信息”按钮重新获取", visible=True),
gr.update(value={})]
Expand Down

0 comments on commit 0b9aa09

Please sign in to comment.