zeeguu/core/model/user_reading_session.py
def find_by_user_and_article(cls, user, article):
        """
        Get reading sessions by user and article
        return: object or None if not found
        """
        query = cls.query
        query = query.filter(cls.user_id == user)
        query = query.filter(cls.article_id == article)

        query = query.order_by("start_time")

        sessions = query.all()
        return sessions

        Get reading sessions by user and article
        return: object or None if not found
        
Get reading sessions by user and article
return: object or None if not found
Get reading sessions by user and article return : object or None if not found
def find_by_user_and_article(cls, user, article):
        query = cls.query
        query = query.filter(cls.user_id == user)
        query = query.filter(cls.article_id == article)
        query = query.order_by("start_time")
        sessions = query.all()
        return sessions
def find_by_user_and_article ( cls , user , article ) : query = cls . query query = query . filter ( cls . user_id == user ) query = query . filter ( cls . article_id == article ) query = query . order_by ( "start_time" ) sessions = query . all ( ) return sessions
Get reading sessions by user and article
return: object or None if not found
Get reading sessions by user and article return : object or None if not found
"""
        Get reading sessions by user and article
        return: object or None if not found
        """
cls
user
article