Skip to content

Commit

Permalink
Add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
aditeyabaral committed Apr 16, 2024
1 parent 4b44bdd commit 3b378ab
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pesu_academy/pages/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def get_semester_list(session: requests_html.HTMLSession, csrf_token: str, semes
option_tags = BeautifulSoup(option_tags, "lxml")
option_tags = option_tags.find_all("option")
semester_string_ids = list(map(lambda x: x.attrs["value"], option_tags))
# TODO: Handle CIE semesters (sometimes the tag is <option value="972">CIE - Level2 (Odd Sem)</option>
semester_numbers = list(map(lambda x: int(x.text.split("Sem-")[1]), option_tags))
semesters = dict(zip(semester_numbers, semester_string_ids))
return semesters

0 comments on commit 3b378ab

Please sign in to comment.