fix: 修正活動列表

This commit is contained in:
Ting-Jun Wang 2021-07-03 17:14:10 +08:00
parent 781eb55010
commit f3d4f06d01
Signed by: snsd0805
GPG Key ID: 8DB0D22BC1217D33

View File

@ -44,12 +44,8 @@ class EventRegistry():
'''
url = "https://ccweb.ncnu.edu.tw/SLLL/z6D3B52D553CA5831540D8CC7659967E58A62list.asp"
response = self.session.get(url)
with open('test.html') as fp:
response = fp.read()
root = BeautifulSoup(response, 'html.parser')
events = root.find('table').findAll('tr')
events = find(response, 'table').findAll('tr')
return [{
'id': getUrlParam(data[0].find('a').get('href').replace('&', '&'), 'RowID'),