]> git.parisson.com Git - timeside.git/commitdiff
feature(analyzer.core): Add a function to display ids contains in analyzer results
authorThomas Fillon <thomas@parisson.com>
Mon, 15 Sep 2014 10:28:19 +0000 (12:28 +0200)
committerThomas Fillon <thomas@parisson.com>
Mon, 15 Sep 2014 10:28:19 +0000 (12:28 +0200)
timeside/analyzer/core.py

index a6f20e6e1b5463b5e811575b2dff208d01b96f4f..23954a63c51d9515701278e80d44f2b95d8545ba 100644 (file)
@@ -947,6 +947,9 @@ class AnalyzerResultContainer(dict):
             if res.id_metadata.id == result_id:
                 return res
 
+    def list_id(self):
+        return [res.id for res in self.values()]
+
     def to_xml(self, output_file=None):
 
         import xml.etree.ElementTree as ET