    def _get_tasks(self, level):
        # type: (int) -> List[Task]
        '''
        Gets all tasks of a certain level.

        Args:
            level (int): One of STATUS_LEVELS
        Returns:
            List of SQLTasks.
        '''
        alerts = SQLEngine.execute(GET_ALERTS, (level,))
        return [SQLTask(*alert) for alert in alerts]
Gets all tasks of a certain level.

Args:
level (int): One of STATUS_LEVELS
Returns:
List of SQLTasks.
securitybot/tasker/sql_tasker.py