openslides_backend/action/actions/motion_category/number_motions.py
def helper_affected_categories(
        self, queue: List[int], aff_categories: List[int]
    ) -> None:
        """Fill the aff_categories, tree walk by level."""
        if not queue:
            return
        aff_categories.append(queue[0])
        category = self.mem_categories.get(queue[0], {})
        queue.extend(self.sort_category_children(category.get("child_ids", [])))
        self.helper_affected_categories(queue[1:], aff_categories)
Fill the aff_categories, tree walk by level.
Fill the aff_categories, tree walk by level.
Fill the aff_categories tree walk by level .
def helper_affected_categories(
        self, queue: List[int], aff_categories: List[int]
    ) -> None:
        if not queue:
            return
        aff_categories.append(queue[0])
        category = self.mem_categories.get(queue[0], {})
        queue.extend(self.sort_category_children(category.get("child_ids", [])))
        self.helper_affected_categories(queue[1:], aff_categories)
def helper_affected_categories ( self , queue : List [ int ] , aff_categories : List [ int ] ) -> None : if not queue : return aff_categories . append ( queue [ 0 ] ) category = self . mem_categories . get ( queue [ 0 ] , { } ) queue . extend ( self . sort_category_children ( category . get ( "child_ids" , [ ] ) ) ) self . helper_affected_categories ( queue [ 1 : ] , aff_categories )
Fill the aff_categories, tree walk by level.
Fill the aff_categories tree walk by level .
"""Fill the aff_categories, tree walk by level."""
self
queue
List[int]
aff_categories
List[int]