refactor: rename descriptor -> block within remaining xmodule
Co-authored-by: Agrendalath <piotr@surowiec.it>
This commit is contained in:
committed by
Agrendalath
parent
ce94d896cf
commit
1950949c9e
@@ -125,9 +125,9 @@ class LibraryToolsService:
|
||||
if usage_key.block_type != "problem":
|
||||
return False
|
||||
|
||||
descriptor = self.store.get_item(usage_key, depth=0)
|
||||
assert isinstance(descriptor, ProblemBlock)
|
||||
return capa_type in descriptor.problem_types
|
||||
block = self.store.get_item(usage_key, depth=0)
|
||||
assert isinstance(block, ProblemBlock)
|
||||
return capa_type in block.problem_types
|
||||
|
||||
def can_use_library_content(self, block):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user