Commit fab9ddba by George Song Committed by GitHub

Merge pull request #15737 from caesar2164/fix-library-content-import-upstream

Fix attrib check code for library_content import
parents 69b2116d 2ad885b7
...@@ -624,7 +624,7 @@ class LibraryContentDescriptor(LibraryContentFields, MakoModuleDescriptor, XmlDe ...@@ -624,7 +624,7 @@ class LibraryContentDescriptor(LibraryContentFields, MakoModuleDescriptor, XmlDe
] ]
definition = { definition = {
attr_name: json.loads(attr_value) attr_name: json.loads(attr_value)
for attr_name, attr_value in xml_object.attrib for attr_name, attr_value in xml_object.attrib.items()
} }
return definition, children return definition, children
......
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