due to open-ended question, disable urbtix survey feature now

master
Max 2023-05-18 10:34:45 +08:00 committed by GitHub
parent 152615e24b
commit bccff2e61d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -54,7 +54,7 @@ import itertools
import ssl import ssl
ssl._create_default_https_context = ssl._create_unverified_context ssl._create_default_https_context = ssl._create_unverified_context
CONST_APP_VERSION = u"MaxBot (2023.05.16)" CONST_APP_VERSION = u"MaxBot (2023.05.18)"
CONST_MAXBOT_CONFIG_FILE = "settings.json" CONST_MAXBOT_CONFIG_FILE = "settings.json"
CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt" CONST_MAXBOT_LAST_URL_FILE = "MAXBOT_LAST_URL.txt"
@ -6788,7 +6788,7 @@ def get_urbtix_survey_answer_by_question(question_text):
return question_answer_char, direction return question_answer_char, direction
# PS: due to open-ended question, disable this feature now.
def urbtix_auto_survey(driver, config_dict): def urbtix_auto_survey(driver, config_dict):
show_debug_message = True # debug. show_debug_message = True # debug.
show_debug_message = False # online show_debug_message = False # online
@ -6976,7 +6976,8 @@ def urbtix_main(driver, url, config_dict):
# for new survey. # for new survey.
if 'https://www.urbtix.hk/session/landing' == url: if 'https://www.urbtix.hk/session/landing' == url:
if config_dict["advanced"]["auto_guess_options"]: if config_dict["advanced"]["auto_guess_options"]:
urbtix_auto_survey(driver, config_dict) #urbtix_auto_survey(driver, config_dict)
pass
if '.hk/member-login' in url: if '.hk/member-login' in url:
urbtix_account = config_dict["advanced"]["urbtix_account"] urbtix_account = config_dict["advanced"]["urbtix_account"]