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
692502c0
Commit
692502c0
authored
Jan 28, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't cache falsy values
parent
3eee6589
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
common/lib/xmodule/xmodule/modulestore/loc_mapper_store.py
+4
-0
common/lib/xmodule/xmodule/modulestore/tests/test_location_mapper.py
+0
-0
No files found.
common/lib/xmodule/xmodule/modulestore/loc_mapper_store.py
View file @
692502c0
...
...
@@ -404,6 +404,8 @@ class LocMapperStore(object):
"""
Get the course Locator for this old course id
"""
if
not
old_course_id
:
return
None
entry
=
self
.
cache
.
get
(
old_course_id
)
if
entry
is
not
None
:
if
published
:
...
...
@@ -428,6 +430,8 @@ class LocMapperStore(object):
"""
For quick lookup of courses
"""
if
not
old_course_id
:
return
self
.
cache
.
set
(
old_course_id
,
(
published_course_locator
,
draft_course_locator
))
def
_cache_location_map_entry
(
self
,
old_course_id
,
location
,
published_usage
,
draft_usage
):
...
...
common/lib/xmodule/xmodule/modulestore/tests/test_location_mapper.py
View file @
692502c0
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