reduce connections to kcoj

This commit is contained in:
2017-08-23 15:33:38 +08:00
parent 69151f80aa
commit f94a61e9a8
2 changed files with 12 additions and 7 deletions

View File

@ -27,7 +27,7 @@ class kuser_api:
soup = BeautifulSoup(response.text, 'html.parser')
return soup.find('a').get_text().strip() == '線上考試'
except requests.exceptions.Timeout:
return True
return None
# list all questions, deadline and hand-in status
def list_questions(self):