Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
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
4a90a5df
Commit
4a90a5df
authored
8 years ago
by
Eric Fischer
Browse files
Options
Downloads
Patches
Plain Diff
Resolve circular dependency issue
parent
b4840923
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
openedx/core/djangoapps/ccxcon/api.py
+2
-2
2 additions, 2 deletions
openedx/core/djangoapps/ccxcon/api.py
with
2 additions
and
2 deletions
openedx/core/djangoapps/ccxcon/api.py
+
2
−
2
View file @
4a90a5df
...
...
@@ -16,9 +16,9 @@ from rest_framework.status import (
)
from
lms.djangoapps.courseware.courses
import
get_course_by_id
from
lms.djangoapps.instructor.access
import
list_with_level
from
openedx.core.djangoapps.models.course_details
import
CourseDetails
from
student.models
import
anonymous_id_for_user
from
student.roles
import
CourseInstructorRole
from
.models
import
CCXCon
log
=
logging
.
getLogger
(
__name__
)
...
...
@@ -122,7 +122,7 @@ def course_info_to_ccxcon(course_key):
)
# get the entire list of instructors
course_instructors
=
list_with_level
(
course
,
'
instructor
'
)
course_instructors
=
CourseInstructorRole
(
course
.
id
).
users_with_role
(
)
# get anonymous ids for each of them
course_instructors_ids
=
[
anonymous_id_for_user
(
user
,
course_key
)
for
user
in
course_instructors
]
# extract the course details
...
...
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