Skip to content

Commit

Permalink
Merge pull request #574 from edx/andytr1/proctored_report
Browse files Browse the repository at this point in the history
EDUCATOR-4290 support for extra columns in report
  • Loading branch information
Andytr1 authored May 20, 2019
2 parents 7058a0a + 9bff904 commit deb9062
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion edx_proctoring/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
from __future__ import absolute_import

# Be sure to update the version number in edx_proctoring/package.json
__version__ = '2.0.1'
__version__ = '2.0.2'

default_app_config = 'edx_proctoring.apps.EdxProctoringConfig' # pylint: disable=invalid-name
7 changes: 6 additions & 1 deletion edx_proctoring/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1545,6 +1545,7 @@ def get_attempt_status_summary(user_id, course_id, content_id):

# let's check credit eligibility
credit_service = get_runtime_service('credit')

# practice exams always has an attempt status regardless of
# eligibility
if credit_service and not exam['is_practice_exam']:
Expand Down Expand Up @@ -2061,6 +2062,7 @@ def get_exam_violation_report(course_id, include_practice_exams=False):
Violation status messages are aggregated as a list per attempt for each
violation type.
"""

attempts_by_code = {
attempt['attempt_code']: {
'course_id': attempt['proctored_exam']['course_id'],
Expand All @@ -2073,7 +2075,10 @@ def get_exam_violation_report(course_id, include_practice_exams=False):
'started_at': attempt['started_at'],
'completed_at': attempt['completed_at'],
'status': attempt['status'],
'review_status': None
'review_status': None,
'provider': attempt['proctored_exam']['backend'],
'user_id': attempt['user']['id']

} for attempt in get_all_exam_attempts(course_id)
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@edx/edx-proctoring",
"//": "Be sure to update the version number in edx_proctoring/__init__.py",
"//": "Note that the version format is slightly different than that of the Python version when using prereleases.",
"version": "2.0.0",
"version": "2.0.1",
"main": "edx_proctoring/static/index.js",
"repository": {
"type": "git",
Expand Down

0 comments on commit deb9062

Please sign in to comment.