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
92fa79db
Commit
92fa79db
authored
Aug 19, 2014
by
jhelbert
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4871 from edx/jhelbert/api-upgrade-check
This confirms the data api upgrade
parents
43368b29
dd7f09d3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
lms/djangoapps/instructor/views/instructor_dashboard.py
+8
-7
requirements/edx/github.txt
+1
-1
No files found.
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
92fa79db
...
...
@@ -38,8 +38,8 @@ from student.roles import CourseFinanceAdminRole
from
bulk_email.models
import
CourseAuthorization
from
class_dashboard.dashboard_data
import
get_section_display_name
,
get_array_section_has_problem
from
analyticsclient.client
import
RestClient
,
ClientError
from
analyticsclient.
course
import
Course
from
analyticsclient.client
import
Client
from
analyticsclient.
exceptions
import
ClientError
from
.tools
import
get_units_with_due_date
,
title_or_url
,
bulk_email_is_enabled_for_course
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
...
...
@@ -386,16 +386,17 @@ def _update_active_students(course_key, section_data):
section_data
[
'active_student_count_end'
]
=
'N/A'
try
:
client
=
Rest
Client
(
base_url
=
base_url
,
auth_token
=
auth_token
)
course
=
Course
(
client
,
course_key
.
to_deprecated_string
(
))
client
=
Client
(
base_url
=
base_url
,
auth_token
=
auth_token
)
course
=
client
.
courses
(
unicode
(
course_key
))
section_data
[
'active_student_count'
]
=
course
.
recent_active_user_count
[
'count'
]
recent_activity
=
course
.
recent_activity
()
section_data
[
'active_student_count'
]
=
recent_activity
[
'count'
]
def
format_date
(
value
):
return
value
.
split
(
'T'
)[
0
]
start
=
course
.
recent_active_user_count
[
'interval_start'
]
end
=
course
.
recent_active_user_count
[
'interval_end'
]
start
=
recent_activity
[
'interval_start'
]
end
=
recent_activity
[
'interval_end'
]
section_data
[
'active_student_count_start'
]
=
format_date
(
start
)
section_data
[
'active_student_count_end'
]
=
format_date
(
end
)
...
...
requirements/edx/github.txt
View file @
92fa79db
...
...
@@ -24,7 +24,7 @@
-e git+https://github.com/edx/js-test-tool.git@v0.1.5#egg=js_test_tool
-e git+https://github.com/edx/django-waffle.git@823a102e48#egg=django-waffle
-e git+https://github.com/edx/event-tracking.git@0.1.0#egg=event-tracking
-e git+https://github.com/edx/edx-analytics-
api-client.git@0.1.0#egg=analytics
-client
-e git+https://github.com/edx/edx-analytics-
data-api-client.git@0.1.0#egg=edx-analytics-data-api
-client
-e git+https://github.com/edx/bok-choy.git@9162c0bfb8e0eb1e2fa8e6df8dec12d181322a90#egg=bok_choy
-e git+https://github.com/edx-solutions/django-splash.git@7579d052afcf474ece1239153cffe1c89935bc4f#egg=django-splash
-e git+https://github.com/edx/acid-block.git@459aff7b63db8f2c5decd1755706c1a64fb4ebb1#egg=acid-xblock
...
...
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