zeeguu/core/model/exercise.py
def find(cls, user_id=None):
        """
        Find all the exercises for a particular or for all users

        Parameters:
        user_id = user identifier

        return: list of exercises sorted by time in ascending order
        """
        from zeeguu.core.model.bookmark import Bookmark, bookmark_exercise_mapping

        query = cls.query
        if user_id is not None:
            query = (
                query.join(bookmark_exercise_mapping)
                .join(Bookmark)
                .filter(Bookmark.user_id == user_id)
            )
        query = query.order_by("time")

        return query.all()

        Find all the exercises for a particular or for all users

        Parameters:
        user_id = user identifier

        return: list of exercises sorted by time in ascending order
        
Find all the exercises for a particular or for all users
Parameters:
user_id = user identifier

list of exercises sorted by time in ascending order
Find all the exercises for a particular or for all users Parameters : user_id = user identifier list of exercises sorted by time in ascending order
def find(cls, user_id=None):
        from zeeguu.core.model.bookmark import Bookmark, bookmark_exercise_mapping
        query = cls.query
        if user_id is not None:
            query = (
                query.join(bookmark_exercise_mapping)
                .join(Bookmark)
                .filter(Bookmark.user_id == user_id)
            )
        query = query.order_by("time")
        return query.all()
def find ( cls , user_id = None ) : from zeeguu . core . model . bookmark import Bookmark , bookmark_exercise_mapping query = cls . query if user_id is not None : query = ( query . join ( bookmark_exercise_mapping ) . join ( Bookmark ) . filter ( Bookmark . user_id == user_id ) ) query = query . order_by ( "time" ) return query . all ( )
Find all the exercises for a particular or for all users
Parameters:
user_id = user identifier
Find all the exercises for a particular or for all users Parameters : user_id = user identifier
"""
        Find all the exercises for a particular or for all users

        Parameters:
        user_id = user identifier

        return: list of exercises sorted by time in ascending order
        """
cls
user_id