Bug fixes, better linux compatibility #9

Merged
mjforan merged 6 commits from master into master 2022-05-24 15:10:06 -06:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit c99040ae47 - Show all commits

View File

@ -473,7 +473,7 @@ def findCourseAssignments(course):
hasattr(submission, "submission_comments") else ""
# Attempt
sub_view.attempt = submission.attempt if \
hasattr(submission, "attempt") else 0
hasattr(submission, "attempt") and submission.attempt is not None else 0
# User ID
sub_view.user_id = str(submission.user_id) if \
hasattr(submission, "user_id") else ""