Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
course-discovery
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
course-discovery
Commits
a0504aaa
Commit
a0504aaa
authored
Aug 10, 2017
by
Clinton Blackburn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed duplicate staff and subject UUIDs from programs index
LEARNER-2229
parent
b10c85ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
course_discovery/apps/course_metadata/search_indexes.py
+2
-2
No files found.
course_discovery/apps/course_metadata/search_indexes.py
View file @
a0504aaa
...
...
@@ -253,10 +253,10 @@ class ProgramIndex(BaseIndex, indexes.Indexable, OrganizationsMixin):
return
self
.
prepare_authoring_organizations
(
obj
)
+
self
.
prepare_credit_backing_organizations
(
obj
)
def
prepare_subject_uuids
(
self
,
obj
):
return
[
str
(
subject
.
uuid
)
for
course
in
obj
.
courses
.
all
()
for
subject
in
course
.
subjects
.
all
()]
return
set
([
str
(
subject
.
uuid
)
for
course
in
obj
.
courses
.
all
()
for
subject
in
course
.
subjects
.
all
()])
def
prepare_staff_uuids
(
self
,
obj
):
return
[
str
(
staff
.
uuid
)
for
course_run
in
obj
.
course_runs
for
staff
in
course_run
.
staff
.
all
()]
return
set
([
str
(
staff
.
uuid
)
for
course_run
in
obj
.
course_runs
for
staff
in
course_run
.
staff
.
all
()])
def
prepare_credit_backing_organizations
(
self
,
obj
):
return
self
.
_prepare_organizations
(
obj
.
credit_backing_organizations
.
all
())
...
...
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