andrewcarlberg/Two-Pick-Too-Drunk — pull request #13 by mlotx (2012-12-08 05:50:06+00:00)
Title: Least rated beers

So running this right now, instead of top rated returns the bottom rated. I still need to make a second button, so can have both working.

To do this added yet another parameter to the recommender function, forward!

def recommender(self, user_ratings, reviews, clusters, db, forward, first, limit)

if forward == True, runs normal, how use to
if forward == False, gives bottom ratings

also changed the sorting line in ratings.html