Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
67a0cccb
Commit
67a0cccb
authored
Mar 15, 2013
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Addressing some pep8/pylint concerns
parent
c0efb013
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
12 deletions
+10
-12
lms/djangoapps/instructor/views.py
+7
-9
lms/envs/common.py
+3
-3
lms/envs/dev.py
+0
-0
No files found.
lms/djangoapps/instructor/views.py
View file @
67a0cccb
# ======== Instructor views =============================================================================
"""
Instructor Views
"""
from
collections
import
defaultdict
from
collections
import
defaultdict
import
csv
import
csv
import
itertools
import
json
import
json
import
logging
import
logging
import
os
import
os
...
@@ -10,8 +10,6 @@ import re
...
@@ -10,8 +10,6 @@ import re
import
requests
import
requests
from
requests.status_codes
import
codes
from
requests.status_codes
import
codes
import
urllib
import
urllib
import
datetime
from
datetime
import
datetime
,
timedelta
from
collections
import
OrderedDict
from
collections
import
OrderedDict
import
json
import
json
...
@@ -621,13 +619,13 @@ def instructor_dashboard(request, course_id):
...
@@ -621,13 +619,13 @@ def instructor_dashboard(request, course_id):
if
idash_mode
==
'Analytics'
:
if
idash_mode
==
'Analytics'
:
DASHBOARD_ANALYTICS
=
[
DASHBOARD_ANALYTICS
=
[
#
"StudentsAttemptedProblems",
# num students who tried given problem
#
"StudentsAttemptedProblems",
# num students who tried given problem
"StudentsDailyActivity"
,
# active students by day
"StudentsDailyActivity"
,
# active students by day
"StudentsDropoffPerDay"
,
# active students dropoff by day
"StudentsDropoffPerDay"
,
# active students dropoff by day
#
"OverallGradeDistribution",
# overall point distribution for course
#
"OverallGradeDistribution",
# overall point distribution for course
"StudentsActive"
,
# num students active in time period (default = 1wk)
"StudentsActive"
,
# num students active in time period (default = 1wk)
"StudentsEnrolled"
,
# num students enrolled
"StudentsEnrolled"
,
# num students enrolled
#
"StudentsPerProblemCorrect", # foreach problem, num students correct,
#
"StudentsPerProblemCorrect", # foreach problem, num students correct
"ProblemGradeDistribution"
,
# foreach problem, grade distribution
"ProblemGradeDistribution"
,
# foreach problem, grade distribution
]
]
for
analytic_name
in
DASHBOARD_ANALYTICS
:
for
analytic_name
in
DASHBOARD_ANALYTICS
:
...
@@ -659,7 +657,7 @@ def instructor_dashboard(request, course_id):
...
@@ -659,7 +657,7 @@ def instructor_dashboard(request, course_id):
'offline_grade_log'
:
offline_grades_available
(
course_id
),
'offline_grade_log'
:
offline_grades_available
(
course_id
),
'cohorts_ajax_url'
:
reverse
(
'cohorts'
,
kwargs
=
{
'course_id'
:
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
)
return
render_to_response
(
'courseware/instructor_dashboard.html'
,
context
)
...
...
lms/envs/common.py
View file @
67a0cccb
...
@@ -82,7 +82,7 @@ MITX_FEATURES = {
...
@@ -82,7 +82,7 @@ MITX_FEATURES = {
'AUTH_USE_OPENID_PROVIDER'
:
False
,
'AUTH_USE_OPENID_PROVIDER'
:
False
,
# analytics experiments
# analytics experiments
'ENABLE_INSTRUCTOR_ANALYTICS'
:
False
,
'ENABLE_INSTRUCTOR_ANALYTICS'
:
False
,
# Flip to True when the YouTube iframe API breaks (again)
# Flip to True when the YouTube iframe API breaks (again)
'USE_YOUTUBE_OBJECT_API'
:
False
,
'USE_YOUTUBE_OBJECT_API'
:
False
,
...
@@ -213,8 +213,8 @@ WIKI_ENABLED = False
...
@@ -213,8 +213,8 @@ WIKI_ENABLED = False
###
###
COURSE_DEFAULT
=
'6.002x_Fall_2012'
COURSE_DEFAULT
=
'6.002x_Fall_2012'
COURSE_SETTINGS
=
{
'6.002x_Fall_2012'
:
{
'number'
:
'6.002x'
,
COURSE_SETTINGS
=
{
'6.002x_Fall_2012'
:
{
'number'
:
'6.002x'
,
'title'
:
'Circuits and Electronics'
,
'title'
:
'Circuits and Electronics'
,
'xmlpath'
:
'6002x/'
,
'xmlpath'
:
'6002x/'
,
'location'
:
'i4x://edx/6002xs12/course/6.002x_Fall_2012'
,
'location'
:
'i4x://edx/6002xs12/course/6.002x_Fall_2012'
,
}
}
...
...
lms/envs/dev.py
View file @
67a0cccb
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment