zeeguu/core/model/user_exercise_session.py
def _is_still_active(self, current_time=datetime.now()):
        """
            Validates if the exercise session is still valid (according to the exercise_session_timeout control variable)

            Parameters:
            current_time = when this parameter is sent, instead of using the datetime.now() value for the current time
                        we use the provided value as the system time (only used for filling in historical data)

            returns: True if the time between the exercise session's last action and the current time
                    is less or equal than the exercise_session_timeout
        """
        time_difference = current_time - self.last_action_time
        w_exercise_session_timeout = timedelta(seconds=EXERCISE_SESSION_TIMEOUT)

        return time_difference <= w_exercise_session_timeout

            Validates if the exercise session is still valid (according to the exercise_session_timeout control variable)

            Parameters:
            current_time = when this parameter is sent, instead of using the datetime.now() value for the current time
                        we use the provided value as the system time (only used for filling in historical data)

            returns: True if the time between the exercise session's last action and the current time
                    is less or equal than the exercise_session_timeout
        
Validates if the exercise session is still valid (according to the exercise_session_timeout control variable)
Parameters:
current_time = when this parameter is sent, instead of using the datetime.now() value for the current time
we use the provided value as the system time (only used for filling in historical data)

True if the time between the exercise session's last action and the current time
is less or equal than the exercise_session_timeout
Validates if the exercise session is still valid ( according to the exercise_session_timeout control variable ) Parameters : current_time = when this parameter is sent instead of using the datetime . now () value for the current time we use the provided value as the system time ( only used for filling in historical data ) True if the time between the exercise session ' s last action and the current time is less or equal than the exercise_session_timeout
def _is_still_active(self, current_time=datetime.now()):
        time_difference = current_time - self.last_action_time
        w_exercise_session_timeout = timedelta(seconds=EXERCISE_SESSION_TIMEOUT)
        return time_difference <= w_exercise_session_timeout
def _is_still_active ( self , current_time = datetime . now ( ) ) : time_difference = current_time - self . last_action_time w_exercise_session_timeout = timedelta ( seconds = EXERCISE_SESSION_TIMEOUT ) return time_difference <= w_exercise_session_timeout
Validates if the exercise session is still valid (according to the exercise_session_timeout control variable)
Parameters:
current_time = when this parameter is sent, instead of using the datetime.now() value for the current time
we use the provided value as the system time (only used for filling in historical data)
Validates if the exercise session is still valid ( according to the exercise_session_timeout control variable ) Parameters : current_time = when this parameter is sent instead of using the datetime . now () value for the current time we use the provided value as the system time ( only used for filling in historical data )
"""
            Validates if the exercise session is still valid (according to the exercise_session_timeout control variable)

            Parameters:
            current_time = when this parameter is sent, instead of using the datetime.now() value for the current time
                        we use the provided value as the system time (only used for filling in historical data)

            returns: True if the time between the exercise session's last action and the current time
                    is less or equal than the exercise_session_timeout
        """
self
current_time