zeeguu/core/model/language.py
def _get_articles(
        self, after_date=None, most_recent_first=False, easiest_first=False
    ):
        """

            Articles for this language from the article DB

        :param limit:
        :param after_date:
        :param most_recent_first:
        :param easiest_first:
        :return:
        """

        from zeeguu.core.model import Article

        if not after_date:
            after_date = datetime(2001, 1, 1)

        try:
            q = (
                Article.query.filter(Article.language == self)
                .filter(Article.broken == 0)
                .filter(Article.published_time >= after_date)
                .filter(Article.word_count > Article.MINIMUM_WORD_COUNT)
            )

            if most_recent_first:
                q = q.order_by(Article.published_time.desc())
            if easiest_first:
                q = q.order_by(Article.fk_difficulty)

            return q.limit(10000)

        except Exception as e:
            raise (e)
            return None


            Articles for this language from the article DB

        :param limit:
        :param after_date:
        :param most_recent_first:
        :param easiest_first:
        :return:
        
Articles for this language from the article DB
Articles for this language from the article DB
def _get_articles(
        self, after_date=None, most_recent_first=False, easiest_first=False
    ):
        from zeeguu.core.model import Article
        if not after_date:
            after_date = datetime(2001, 1, 1)
        try:
            q = (
                Article.query.filter(Article.language == self)
                .filter(Article.broken == 0)
                .filter(Article.published_time >= after_date)
                .filter(Article.word_count > Article.MINIMUM_WORD_COUNT)
            )
            if most_recent_first:
                q = q.order_by(Article.published_time.desc())
            if easiest_first:
                q = q.order_by(Article.fk_difficulty)
            return q.limit(10000)
        except Exception as e:
            raise (e)
            return None
def _get_articles ( self , after_date = None , most_recent_first = False , easiest_first = False ) : from zeeguu . core . model import Article if not after_date : after_date = datetime ( 2001 , 1 , 1 ) try : q = ( Article . query . filter ( Article . language == self ) . filter ( Article . broken == 0 ) . filter ( Article . published_time >= after_date ) . filter ( Article . word_count > Article . MINIMUM_WORD_COUNT ) ) if most_recent_first : q = q . order_by ( Article . published_time . desc ( ) ) if easiest_first : q = q . order_by ( Article . fk_difficulty ) return q . limit ( 10000 ) except Exception as e : raise ( e ) return None
Articles for this language from the article DB
Articles for this language from the article DB
"""

            Articles for this language from the article DB

        :param limit:
        :param after_date:
        :param most_recent_first:
        :param easiest_first:
        :return:
        """
None
self
after_date
None
most_recent_first
None
easiest_first
None
limit
None