Skip to content

Commit

Permalink
Merge pull request #116 from nilshee/master
Browse files Browse the repository at this point in the history
Fix URL check in SyncMyMoodle login
  • Loading branch information
septatrix authored Apr 26, 2024
2 parents 6ab4ee2 + 8dea573 commit a80208a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncmymoodle/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ def get_session_key(soup):
resp = self.session.get(
"https://moodle.rwth-aachen.de/auth/shibboleth/index.php"
)
if resp.url == "https://moodle.rwth-aachen.de/my/":
if resp.url.startswith("https://moodle.rwth-aachen.de/my/"):
soup = bs(resp.text, features="html.parser")
self.session_key = get_session_key(soup)
with cookie_file.open("wb") as f:
Expand Down

0 comments on commit a80208a

Please sign in to comment.