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
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, April 9th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
67a0cccb
Commit
67a0cccb
authored
12 years ago
by
David Ormsbee
Browse files
Options
Downloads
Patches
Plain Diff
Addressing some pep8/pylint concerns
parent
c0efb013
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lms/djangoapps/instructor/views.py
+13
-15
13 additions, 15 deletions
lms/djangoapps/instructor/views.py
lms/envs/common.py
+4
-4
4 additions, 4 deletions
lms/envs/common.py
lms/envs/dev.py
+1
-1
1 addition, 1 deletion
lms/envs/dev.py
with
18 additions
and
20 deletions
lms/djangoapps/instructor/views.py
+
13
−
15
View file @
67a0cccb
# ======== Instructor views =============================================================================
"""
Instructor Views
"""
from
collections
import
defaultdict
import
csv
import
itertools
import
json
import
logging
import
os
...
...
@@ -10,8 +10,6 @@ import re
import
requests
from
requests.status_codes
import
codes
import
urllib
import
datetime
from
datetime
import
datetime
,
timedelta
from
collections
import
OrderedDict
import
json
...
...
@@ -595,7 +593,7 @@ def instructor_dashboard(request, course_id):
#----------------------------------------
# analytics
def
get_analytics_result
(
analytics_name
):
"""
Return data for an Analytic piece, or None if it doesn
'
t exist. It
"""
Return data for an Analytic piece, or None if it doesn
'
t exist. It
logs and swallows errors.
"""
url
=
settings
.
ANALYTICS_SERVER_URL
+
\
...
...
@@ -621,14 +619,14 @@ def instructor_dashboard(request, course_id):
if
idash_mode
==
'
Analytics
'
:
DASHBOARD_ANALYTICS
=
[
#"StudentsAttemptedProblems", # num students who tried given problem
"
StudentsDailyActivity
"
,
# active students by day
"
StudentsDropoffPerDay
"
,
# active students dropoff by day
#"OverallGradeDistribution", # overall point distribution for course
"
StudentsActive
"
,
# num students active in time period (default = 1wk)
"
StudentsEnrolled
"
,
# num students enrolled
#"StudentsPerProblemCorrect", # foreach problem, num students correct
,
"
ProblemGradeDistribution
"
,
# foreach problem, grade distribution
#
"StudentsAttemptedProblems",
# num students who tried given problem
"
StudentsDailyActivity
"
,
# active students by day
"
StudentsDropoffPerDay
"
,
# active students dropoff by day
#
"OverallGradeDistribution",
# overall point distribution for course
"
StudentsActive
"
,
# num students active in time period (default = 1wk)
"
StudentsEnrolled
"
,
# num students enrolled
#
"StudentsPerProblemCorrect",
# foreach problem, num students correct
"
ProblemGradeDistribution
"
,
# foreach problem, grade distribution
]
for
analytic_name
in
DASHBOARD_ANALYTICS
:
analytics_results
[
analytic_name
]
=
get_analytics_result
(
analytic_name
)
...
...
@@ -659,7 +657,7 @@ def instructor_dashboard(request, course_id):
'
offline_grade_log
'
:
offline_grades_available
(
course_id
),
'
cohorts_ajax_url
'
:
reverse
(
'
cohorts
'
,
kwargs
=
{
'
course_id
'
:
course_id
}),
'
analytics_results
'
:
analytics_results
,
'
analytics_results
'
:
analytics_results
,
}
return
render_to_response
(
'
courseware/instructor_dashboard.html
'
,
context
)
...
...
This diff is collapsed.
Click to expand it.
lms/envs/common.py
+
4
−
4
View file @
67a0cccb
...
...
@@ -82,12 +82,12 @@ MITX_FEATURES = {
'
AUTH_USE_OPENID_PROVIDER
'
:
False
,
# analytics experiments
'
ENABLE_INSTRUCTOR_ANALYTICS
'
:
False
,
'
ENABLE_INSTRUCTOR_ANALYTICS
'
:
False
,
# Flip to True when the YouTube iframe API breaks (again)
'
USE_YOUTUBE_OBJECT_API
'
:
False
,
# Give a UI to show a student's submission history in a problem by the
# Give a UI to show a student's submission history in a problem by the
# Staff Debug tool.
'
ENABLE_STUDENT_HISTORY_VIEW
'
:
True
}
...
...
@@ -213,8 +213,8 @@ WIKI_ENABLED = False
###
COURSE_DEFAULT
=
'
6.002x_Fall_2012
'
COURSE_SETTINGS
=
{
'
6.002x_Fall_2012
'
:
{
'
number
'
:
'
6.002x
'
,
'
title
'
:
'
Circuits and Electronics
'
,
COURSE_SETTINGS
=
{
'
6.002x_Fall_2012
'
:
{
'
number
'
:
'
6.002x
'
,
'
title
'
:
'
Circuits and Electronics
'
,
'
xmlpath
'
:
'
6002x/
'
,
'
location
'
:
'
i4x://edx/6002xs12/course/6.002x_Fall_2012
'
,
}
...
...
This diff is collapsed.
Click to expand it.
lms/envs/dev.py
+
1
−
1
View file @
67a0cccb
...
...
@@ -221,4 +221,4 @@ PEARSON_TEST_PASSWORD = "12345"
########################## ANALYTICS TESTING ########################
ANALYTICS_SERVER_URL
=
"
http://127.0.0.1:9000/
"
ANALYTICS_API_KEY
=
""
\ No newline at end of file
ANALYTICS_API_KEY
=
""
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