def getArticles(self, start=0, count=1, omit=None, **kwargs):
        u"""Answer the sorted list of *count* pages/articles, starting on *start* index,
        selected from all articles. Sorting is based om the @article.ranking@ field.
        If *omit* is a list of article ids (or a single id), then skip these articles
        from the selection."""
        articles = []
        if omit is None: # Nothing to omit, just slice the pre-sorted article list.
            chapters = self.ranked[start:start+count]
        else: # Otherwise create the list by omitting what is in the attributes.
            if not isinstance(omit, (list, tuple)):
                omit = [omit] # Make sure it is a list.
            for item in self.ranked[start:]:
                if not omit in item.id:
                    articles.append(item)
                    if len(articles) >= count:
                        break
        return articles
dataset/ETHPy150Open petrvanblokland/Xierpa3/xierpa3/adapters/textilefileadapter.py/TextileFileAdapter.getArticles/swapped operands of `in`