Skip to content

Handle unresolvable anonymous ids gracefully. - #124

Merged
smarnach merged 1 commit into
masterfrom
smarnach/anonymous-id
Oct 5, 2016
Merged

Handle unresolvable anonymous ids gracefully.#124
smarnach merged 1 commit into
masterfrom
smarnach/anonymous-id

Conversation

@smarnach

@smarnach smarnach commented Oct 4, 2016

Copy link
Copy Markdown
Contributor

In some cases it is possible that the anonymous student_id of a submission can't be reversed to the original user. In this case, the function user_by_anonymous_id() returns None, resulting in a crash when building reports.

This change fixes the crash by returning student_id instead of the actual user name in case it cannot be reconstructed.

@mtyaka

mtyaka commented Oct 5, 2016

Copy link
Copy Markdown
Member

👍

@smarnach
smarnach merged commit 484131c into master Oct 5, 2016
@xitij2000
xitij2000 deleted the smarnach/anonymous-id branch December 13, 2019 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants