Bug fixes, better linux compatibility #9
|
@ -473,7 +473,7 @@ def findCourseAssignments(course):
|
||||||
hasattr(submission, "submission_comments") else ""
|
hasattr(submission, "submission_comments") else ""
|
||||||
# Attempt
|
# Attempt
|
||||||
sub_view.attempt = submission.attempt if \
|
sub_view.attempt = submission.attempt if \
|
||||||
hasattr(submission, "attempt") else 0
|
hasattr(submission, "attempt") and submission.attempt is not None else 0
|
||||||
# User ID
|
# User ID
|
||||||
sub_view.user_id = str(submission.user_id) if \
|
sub_view.user_id = str(submission.user_id) if \
|
||||||
hasattr(submission, "user_id") else ""
|
hasattr(submission, "user_id") else ""
|
||||||
|
|
Loading…
Reference in New Issue