mirror of
https://github.com/wassname/sloth.git
synced 2026-07-16 11:21:45 +08:00
Fix reporting of numer of annotations in loaded file
This commit is contained in:
@@ -177,8 +177,10 @@ class RootModelItem(ModelItem):
|
||||
return len(self.children())
|
||||
|
||||
def numAnnotations(self):
|
||||
# TODO
|
||||
return 0
|
||||
count = 0
|
||||
for ann in self._model.iterator(AnnotationModelItem):
|
||||
count += 1
|
||||
return count
|
||||
|
||||
def getAnnotations(self):
|
||||
return [child.getAnnotations() for child in self.children()]
|
||||
|
||||
Reference in New Issue
Block a user