From ca82e4cefc146fa1fcc89bc46245fa17908303dc Mon Sep 17 00:00:00 2001 From: CHUN YU YAO Date: Thu, 14 Dec 2023 20:15:23 +0800 Subject: [PATCH] 2023-12-08, update for ticket-plus --- chrome_tixcraft.py | 9 ++++++++- config_launcher.py | 2 +- settings.py | 2 +- text_server.py | 2 +- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index a431777..892dbbc 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -53,7 +53,7 @@ import webbrowser import chromedriver_autoinstaller -CONST_APP_VERSION = "MaxBot (2023.12.07)" +CONST_APP_VERSION = "MaxBot (2023.12.08)" CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" @@ -11062,6 +11062,13 @@ def ticketplus_order_expansion_auto_select(driver, config_dict, area_keyword_ite my_css_selector = 'div.seats-area > div.v-expansion-panel[aria-expanded="false"]' area_list = driver.find_elements(By.CSS_SELECTOR, my_css_selector) is_click_on_folder = True + + if len(area_list)==1: + my_css_selector = 'div.seats-area > div.v-expansion-panel[aria-expanded="true"]' + area_list_parent = driver.find_elements(By.CSS_SELECTOR, my_css_selector) + if len(area_list_parent) > 0: + # change keyword to match all. + area_keyword_item = "" except Exception as exc: if current_layout_style == 1: diff --git a/config_launcher.py b/config_launcher.py index 028e9d9..f73c5b1 100644 --- a/config_launcher.py +++ b/config_launcher.py @@ -22,7 +22,7 @@ import sys import threading import webbrowser -CONST_APP_VERSION = "MaxBot (2023.12.06)" +CONST_APP_VERSION = "MaxBot (2023.12.08)" CONST_MAXBOT_LAUNCHER_FILE = "config_launcher.json" CONST_MAXBOT_CONFIG_FILE = "settings.json" diff --git a/settings.py b/settings.py index 48f386e..d33c528 100644 --- a/settings.py +++ b/settings.py @@ -34,7 +34,7 @@ import ssl ssl._create_default_https_context = ssl._create_unverified_context -CONST_APP_VERSION = "MaxBot (2023.12.07)" +CONST_APP_VERSION = "MaxBot (2023.12.08)" CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" diff --git a/text_server.py b/text_server.py index 6dd7328..067e20d 100644 --- a/text_server.py +++ b/text_server.py @@ -27,7 +27,7 @@ import pyperclip import tornado from tornado.web import Application -CONST_APP_VERSION = "MaxBot (2023.12.06)" +CONST_APP_VERSION = "MaxBot (2023.12.08)" CONST_MAXBOT_QUESTION_FILE = "MAXBOT_QUESTION.txt"