From 631929acdb485b6d566ad43a775432950981812a Mon Sep 17 00:00:00 2001 From: falsycat Date: Sun, 12 Feb 2023 11:31:00 +0900 Subject: [PATCH] fix an issue that cannot find available slots on the calender --- mods/elicense.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/elicense.py b/mods/elicense.py index 28de042..4446944 100644 --- a/mods/elicense.py +++ b/mods/elicense.py @@ -118,6 +118,7 @@ class Calender: raise Exception(m[1]) self.avails = re.findall(RE_AVAIL_SLOT, text) + print(self.avails) self.params = {} for name in RE_PARAMS: @@ -147,7 +148,7 @@ TIMETABLE = { RE_ALERT = re.compile(r"window\.alert\('(.*)'\)") RE_ERROR = re.compile(r"<.*? class=\"errorTitle\">メッセージ<\/.*?>\s*<.*? class=\"errorDisp\">(.*?)<\/.*?>", re.MULTILINE) -RE_AVAIL_SLOT = re.compile(r"^\s*$") +RE_AVAIL_SLOT = re.compile(r"") RE_PARAMS = { "kamokuCd" : None,