ui/EntryTree.py
def query(self, concept: str, offset: int, limit: int):
        """
        Query and fill tree with imaged moments
        :param concept: Concept to query
        :param offset: Offset of imaged moments
        :param limit: Limit of imaged moments
        :return: None
        """
        if self.loaded_concept != concept:
            self.fetch_uuids(concept)

        results = [{
            'uuid': uuid,
            'type': 'imaged_moment',
            'status': 'unknown'
        } for uuid in self.loaded_uuids[offset:offset+limit]]

        self.clear()
        if not results:
            self.add_item(None, self)
        for result in results:
            item = self.add_item(result)
            self.load_imaged_moment_entry(item)

        Query and fill tree with imaged moments
        :param concept: Concept to query
        :param offset: Offset of imaged moments
        :param limit: Limit of imaged moments
        :return: None
        
Query and fill tree with imaged moments
Query and fill tree with imaged moments
def query(self, concept: str, offset: int, limit: int):
        if self.loaded_concept != concept:
            self.fetch_uuids(concept)
        results = [{
            'uuid': uuid,
            'type': 'imaged_moment',
            'status': 'unknown'
        } for uuid in self.loaded_uuids[offset:offset+limit]]
        self.clear()
        if not results:
            self.add_item(None, self)
        for result in results:
            item = self.add_item(result)
            self.load_imaged_moment_entry(item)
def query ( self , concept : str , offset : int , limit : int ) : if self . loaded_concept != concept : self . fetch_uuids ( concept ) results = [ { 'uuid' : uuid , 'type' : 'imaged_moment' , 'status' : 'unknown' } for uuid in self . loaded_uuids [ offset : offset + limit ] ] self . clear ( ) if not results : self . add_item ( None , self ) for result in results : item = self . add_item ( result ) self . load_imaged_moment_entry ( item )
Query and fill tree with imaged moments
Query and fill tree with imaged moments
"""
        Query and fill tree with imaged moments
        :param concept: Concept to query
        :param offset: Offset of imaged moments
        :param limit: Limit of imaged moments
        :return: None
        """
None
self
concept
str
Concept to query
Concept to query
offset
int
Offset of imaged moments
Offset of imaged moments
limit
int
Limit of imaged moments
Limit of imaged moments