Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
This is an integration of canvas with edX.
"""

__version__ = "0.5.1"
__version__ = "0.5.3"

default_app_config = "ol_openedx_canvas_integration.app.CanvasIntegrationConfig" # pylint: disable=invalid-name
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ def get_student_id_by_email(self, email: str):
search_results = self._paginate(
url, params={"search_term": email, "enrollment_type[]": "student"}
)
log.debug("Canvas search results for %s: %s", email, search_results)
student_id = next(
(
user["id"]
for user in search_results
if user.get("email", "").lower() == email.lower()
if user.get("login_id", "").lower() == email.lower()
),
None,
)
Expand Down
2 changes: 1 addition & 1 deletion src/ol_openedx_canvas_integration/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "ol-openedx-canvas-integration"
version = "0.5.2"
version = "0.5.3"
description = "An Open edX plugin to add canvas integration support"
authors = [
{name = "MIT Office of Digital Learning"}
Expand Down