Skip to content
This repository has been archived by the owner on Jun 25, 2022. It is now read-only.

Commit

Permalink
eDAP: Another fix attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
bs3vcenk committed Feb 15, 2020
1 parent 23d97e2 commit ca678ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 0 additions & 1 deletion edap/app/api_backend.py
Expand Up @@ -1032,7 +1032,6 @@ class ID that will be "expanded" (add grades, exams, etc.)
class_obj['info'] = None
# Mark it as full/expanded
class_obj['full'] = True
obj.close()
return class_obj

def verify_dev_request(token: str) -> bool:
Expand Down
11 changes: 2 additions & 9 deletions edap/app/edap.py
Expand Up @@ -157,7 +157,8 @@ def __fetch(self, url: str) -> str:
try:
o = self.session.get(url)
o.raise_for_status()
return o.text
data = o.content.decode('utf-8')
return data
except (requests.exceptions.HTTPError, requests.exceptions.Timeout):
raise NetworkError(url)

Expand Down Expand Up @@ -610,11 +611,3 @@ def getAbsenceList(self, class_id: int) -> List[dict]:
self.__edlog(0, "Decomposing tree")
soup.decompose()
return abslist2

def close(self):
# Test method
self.session.close()
self.class_ids = []
self.subject_ids = []
self.subject_cache = {}
self.absence_cache = {}

0 comments on commit ca678ca

Please sign in to comment.