fix an issue that cannot find available slots on the calender
This commit is contained in:
parent
6705c77a57
commit
631929acdb
@ -118,6 +118,7 @@ class Calender:
|
|||||||
raise Exception(m[1])
|
raise Exception(m[1])
|
||||||
|
|
||||||
self.avails = re.findall(RE_AVAIL_SLOT, text)
|
self.avails = re.findall(RE_AVAIL_SLOT, text)
|
||||||
|
print(self.avails)
|
||||||
|
|
||||||
self.params = {}
|
self.params = {}
|
||||||
for name in RE_PARAMS:
|
for name in RE_PARAMS:
|
||||||
@ -147,7 +148,7 @@ TIMETABLE = {
|
|||||||
|
|
||||||
RE_ALERT = re.compile(r"window\.alert\('(.*)'\)")
|
RE_ALERT = re.compile(r"window\.alert\('(.*)'\)")
|
||||||
RE_ERROR = re.compile(r"<.*? class=\"errorTitle\">メッセージ<\/.*?>\s*<.*? class=\"errorDisp\">(.*?)<\/.*?>", re.MULTILINE)
|
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 = {
|
RE_PARAMS = {
|
||||||
"kamokuCd" : None,
|
"kamokuCd" : None,
|
||||||
|
Loading…
Reference in New Issue
Block a user