BCFv3 "get_comments" error #2212

Fix for Issue #2212 

The method get_comments wasn't working as expected because on line 649, it was trying to access the element "Topics" instead of "Topic", based on the XSD "Topics" doesn't exist.
This commit is contained in:
AToradaIBIM
2022-05-25 11:10:19 +02:00
committed by Thomas Krijnen
parent 0a3e5f65fa
commit 24f307130c
+1 -1
View File
@@ -646,7 +646,7 @@ class BcfXml:
def get_comments(self, guid):
comments = {}
data = self._read_xml(os.path.join(guid, "markup.bcf"), "markup.xsd")
if "Comments" not in data["Topics"]:
if "Comments" not in data["Topic"]:
return comments
for item in data["Topic"]["Comments"].get("Comment", []):