Commit e7a281e8667a66961e5ec69f043943987a938237

Authored by Andrew Buss
1 parent 666a9e28a2
Exists in master

sort order got reversed!

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

flashcards/models.py View file @ e7a281e
... ... @@ -379,7 +379,7 @@
379 379  
380 380 def get_feed_for_user(self, user):
381 381 cards = list(self.get_cards_for_user(user).exclude(userflashcard__user=user))
382   - cards.sort(key=lambda x: x.score)
  382 + cards.sort(key=lambda x: -x.score)
383 383 return cards
384 384  
385 385 def get_cards_for_user(self, user):