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
4959f3b8
Commit
4959f3b8
authored
Jun 11, 2014
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix wiki search query
and formatting error in a doc file.
parent
236f36b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
common/lib/xmodule/xmodule/modulestore/mongo/base.py
+1
-1
mongo_indexes.md
+1
-1
No files found.
common/lib/xmodule/xmodule/modulestore/mongo/base.py
View file @
4959f3b8
...
...
@@ -1018,7 +1018,7 @@ class MongoModuleStore(ModuleStoreWriteBase):
:param wiki_slug: the course wiki root slug
:return: list of course locations
"""
courses
=
self
.
collection
.
find
({
'definition.data.wiki_slug'
:
wiki_slug
})
courses
=
self
.
collection
.
find
({
'
_id.category'
:
'course'
,
'
definition.data.wiki_slug'
:
wiki_slug
})
# the course's run == its name. It's the only xblock for which that's necessarily true.
return
[
Location
.
_from_deprecated_son
(
course
[
'_id'
],
course
[
'_id'
][
'name'
])
for
course
in
courses
]
...
...
mongo_indexes.md
View file @
4959f3b8
...
...
@@ -25,7 +25,7 @@ fs.files:
Index needed thru 'category' by
`_get_all_content_for_course`
and others. That query also takes a sort
which can be
`uploadDate`
,
`display_name`
,
# again, uploadDate may also be a freq sort.
```
ensureIndex({'_id.tag': 1, '_id.org': 1, '_id.course': 1, '_id.category': 1})
```
...
...
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