Commit 7c11a83f by Jonathan Piacenti Committed by E. Kolpakov

Addressed nits.

parent 4e5b6c8b
......@@ -361,7 +361,7 @@ class LibraryContentDescriptor(LibraryContentFields, MakoModuleDescriptor, XmlDe
# See https://openedx.atlassian.net/browse/TNL-993
action_class='library-update-btn',
# Translators: ↻ is an UTF icon symbol, no need translating it.
action_label=_(u"↻ Update now.")
action_label=_(u"{0} Update now.").format(u"↻")
)
)
return False
......@@ -453,8 +453,8 @@ class LibraryContentDescriptor(LibraryContentFields, MakoModuleDescriptor, XmlDe
If source_libraries has been edited, refresh_children automatically.
"""
old_source_libraries = LibraryList().from_json(old_metadata.get('source_libraries', []))
if set(old_source_libraries) != set(self.source_libraries) or \
old_metadata.get('capa_type', ANY_CAPA_TYPE_VALUE) != self.capa_type:
if (set(old_source_libraries) != set(self.source_libraries) or
old_metadata.get('capa_type', ANY_CAPA_TYPE_VALUE) != self.capa_type):
try:
self.refresh_children(None, None, update_db=False) # update_db=False since update_item() is about to be called anyways
except ValueError:
......
......@@ -64,7 +64,7 @@ class LibraryToolsService(object):
Returns generator containing (child_key, child) for all children matching filter criteria
"""
children = (
(child_key, self.store.get_item(child_key, depth=9))
(child_key, self.store.get_item(child_key, depth=None))
for child_key in from_block.children
)
return (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment