def list_any(self, editable, match):
     keyword = match[0]
     reviews = Review.get_by(
         session=self.database,
         title=keyword
     )
     return views.anyresults(reviews, keyword)
 def search_reviews(self, editable, match):
     author = editable.author.name.lower()
     self.fetcher.fetch_reviews(author)
     keywords = match[0] 
     reviews = Review.get_by(
         session=self.database,
         author=author,
         title=keywords,
         limit=self.list_length,
     )
     return views.searchresults(editable.author, reviews, keywords)
    def list_reviews(self, editable, match):
        author = editable.author.name.lower()
        self.fetcher.fetch_reviews(author)

        reviews = Review.get_by(
            session=self.database,
            author=author,
            limit=self.list_length
        )

        return views.reviewlist(editable.author, reviews)