Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
d88e41db
Commit
d88e41db
authored
5 years ago
by
atesker
Browse files
Options
Downloads
Patches
Plain Diff
updated header location, error handling
parent
f00eb4f3
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lms/djangoapps/instructor_analytics/basic.py
+7
-5
7 additions, 5 deletions
lms/djangoapps/instructor_analytics/basic.py
lms/djangoapps/instructor_task/tasks_helper/misc.py
+3
-3
3 additions, 3 deletions
lms/djangoapps/instructor_task/tasks_helper/misc.py
with
10 additions
and
8 deletions
lms/djangoapps/instructor_analytics/basic.py
+
7
−
5
View file @
d88e41db
...
...
@@ -334,7 +334,7 @@ def get_proctored_exam_results(course_key, features):
"""
comment_statuses
=
[
'
Rules Violation
'
,
'
Suspicious
'
]
def
extract_details
(
exam_attempt
,
features
,
course_enrollment
):
def
extract_details
(
exam_attempt
,
features
,
course_enrollment
s
):
"""
Build dict containing information about a single student exam_attempt.
"""
...
...
@@ -351,13 +351,15 @@ def get_proctored_exam_results(course_key, features):
u
'
{status} Count
'
.
format
(
status
=
status
):
len
(
comment_list
),
u
'
{status} Comments
'
.
format
(
status
=
status
):
'
;
'
.
join
(
comment_list
),
})
proctored_exam
[
'
track
'
]
=
course_enrollment
[
exam_attempt
[
'
user_id
'
]]
try
:
proctored_exam
[
'
track
'
]
=
course_enrollments
[
exam_attempt
[
'
user_id
'
]]
except
KeyError
:
proctored_exam
[
'
track
'
]
=
'
Unknown
'
return
proctored_exam
exam_attempts
=
get_exam_violation_report
(
course_key
)
course_enrollment
=
get_enrollments_for_course
(
exam_attempts
)
return
[
extract_details
(
exam_attempt
,
features
,
course_enrollment
)
for
exam_attempt
in
exam_attempts
]
course_enrollment
s
=
get_enrollments_for_course
(
exam_attempts
)
return
[
extract_details
(
exam_attempt
,
features
,
course_enrollment
s
)
for
exam_attempt
in
exam_attempts
]
def
get_enrollments_for_course
(
exam_attempts
):
...
...
This diff is collapsed.
Click to expand it.
lms/djangoapps/instructor_task/tasks_helper/misc.py
+
3
−
3
View file @
d88e41db
...
...
@@ -105,6 +105,8 @@ def upload_proctored_exam_results_report(_xmodule_instance_args, _entry_id, cour
# Compute result table and format it
query_features
=
[
'
course_id
'
,
'
provider
'
,
'
track
'
,
'
exam_name
'
,
'
username
'
,
'
email
'
,
...
...
@@ -118,9 +120,7 @@ def upload_proctored_exam_results_report(_xmodule_instance_args, _entry_id, cour
'
Suspicious Count
'
,
'
Suspicious Comments
'
,
'
Rules Violation Count
'
,
'
Rules Violation Comments
'
,
'
provider
'
,
'
track
'
'
Rules Violation Comments
'
]
student_data
=
get_proctored_exam_results
(
course_id
,
query_features
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment