zeeguu/core/model/user_exercise_session.py
def _close_exercise_session(self, db_session):
        """
           Sets the is_active field to False

            Parameters:
            db_session = database session

            returns: The exercise session if everything went well otherwise probably exceptions related to the DB
        """
        self.is_active = False
        db_session.add(self)
        db_session.commit()
        return self

           Sets the is_active field to False

            Parameters:
            db_session = database session

            returns: The exercise session if everything went well otherwise probably exceptions related to the DB
        
Sets the is_active field to False
Parameters:
db_session = database session

The exercise session if everything went well otherwise probably exceptions related to the DB
Sets the is_active field to False Parameters : db_session = database session The exercise session if everything went well otherwise probably exceptions related to the DB
def _close_exercise_session(self, db_session):
        self.is_active = False
        db_session.add(self)
        db_session.commit()
        return self
def _close_exercise_session ( self , db_session ) : self . is_active = False db_session . add ( self ) db_session . commit ( ) return self
Sets the is_active field to False
Parameters:
db_session = database session
Sets the is_active field to False Parameters : db_session = database session
"""
           Sets the is_active field to False

            Parameters:
            db_session = database session

            returns: The exercise session if everything went well otherwise probably exceptions related to the DB
        """
self
db_session