From d90094e3bc64bf26c49d066407522b763ebd8c2a Mon Sep 17 00:00:00 2001 From: CHUN YU YAO Date: Fri, 5 Apr 2024 01:27:01 +0800 Subject: [PATCH] fix typo --- chrome_tixcraft.py | 5 ++++- nodriver_tixcraft.py | 4 +++- util.py | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/chrome_tixcraft.py b/chrome_tixcraft.py index 7322da8..09448d6 100644 --- a/chrome_tixcraft.py +++ b/chrome_tixcraft.py @@ -142,9 +142,11 @@ def get_config_dict(args): if not args.homepage is None: if len(args.homepage) > 0: config_dict["homepage"] = args.homepage + if not args.ticket_number is None: - if args.homepage > 0: + if args.ticket_number > 0: config_dict["ticket_number"] = args.ticket_number + if not args.browser is None: if len(args.browser) > 0: config_dict["browser"] = args.browser @@ -152,6 +154,7 @@ def get_config_dict(args): if not args.tixcraft_sid is None: if len(args.tixcraft_sid) > 0: config_dict["advanced"]["tixcraft_sid"] = args.tixcraft_sid + if not args.ibonqware is None: if len(args.ibonqware) > 0: config_dict["advanced"]["ibonqware"] = args.ibonqware diff --git a/nodriver_tixcraft.py b/nodriver_tixcraft.py index c21ed4e..b6ca935 100644 --- a/nodriver_tixcraft.py +++ b/nodriver_tixcraft.py @@ -125,9 +125,11 @@ def get_config_dict(args): if not args.homepage is None: if len(args.homepage) > 0: config_dict["homepage"] = args.homepage + if not args.ticket_number is None: - if args.homepage > 0: + if args.ticket_number > 0: config_dict["ticket_number"] = args.ticket_number + if not args.browser is None: if len(args.browser) > 0: config_dict["browser"] = args.browser diff --git a/util.py b/util.py index 710f431..b82cb06 100644 --- a/util.py +++ b/util.py @@ -1869,7 +1869,7 @@ def kktix_get_registerStatus(event_code): print("send reg_info request fail:") print(exc) - registerStatus = None + registerStatus = "" if not html_result is None: status_code = html_result.status_code #print("status_code:",status_code)