Skip to content
This repository has been archived by the owner on Aug 11, 2023. It is now read-only.

Commit

Permalink
replaced string manipulation with simpler version
Browse files Browse the repository at this point in the history
  • Loading branch information
xMuffin committed Feb 22, 2023
1 parent 9f2a685 commit 1034295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kusss.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def courses() -> set[Course]:
names = [c.strip() for c in cols[1].text.split("\n")[2:4]]
all_courses.add(
Course(
lva_nr="".join(cols[0].text.strip().split(".")),
lva_nr=cols[0].text.strip().replace(".", ""),
semester=cols[5].text.strip(),
lva_type=cols[2].text.strip(),
lva_name=names[0] if names[1] == "" else " - ".join(names),
Expand Down

0 comments on commit 1034295

Please sign in to comment.