(self)
return active_sessions
List active analysis sessions.

        Returns:
            List of instances of timesketch.models.sketch.AnalysisSession
List active analysis sessions.
List active analysis sessions .
def get_active_analysis_sessions(self):
        """List active analysis sessions.

        Returns:
            List of instances of timesketch.models.sketch.AnalysisSession
        """
        active_sessions = []
        for session in self.analysissessions:
            for analysis in session.analyses:
                if analysis.get_status.status in ('PENDING', 'STARTED'):
                    active_sessions.append(session)
                    # Break early on first running analysis as this is enough
                    # to mark the session as active.
                    break
        return active_sessions
def get_active_analysis_sessions ( self ) : active_sessions = [ ] for session in self . analysissessions : for analysis in session . analyses : if analysis . get_status . status in ( 'PENDING' , 'STARTED' ) : active_sessions . append ( session ) # Break early on first running analysis as this is enough # to mark the session as active. break return active_sessions