fix an issue that cannot find available slots on the calender

This commit is contained in:
falsycat 2023-02-12 11:31:00 +09:00
parent 6705c77a57
commit 631929acdb
1 changed files with 2 additions and 1 deletions

View File

@ -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*<a href=\"#\" onclick=\"sendContent\('(\d+)','(\d+)','V',document\.getElementById\('formId'\)\)\">$")
RE_AVAIL_SLOT = re.compile(r"<a href=\"#\" onclick=\"sendContent\('(\d+)','(\d+)','V',document\.getElementById\('formId'\)\)\">")
RE_PARAMS = {
"kamokuCd" : None,