Skip to content

Commit

Permalink
Micro optimization :)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Feb 17, 2011
1 parent 3b1cf8f commit 09decf2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bf3.py
Expand Up @@ -241,6 +241,8 @@ def logout(self):
session.permanent = False

def get_favorite_status_for(self, messages):
if not messages:
return set()
uf = user_favorites.c
result = db.session.execute(user_favorites.select(
(uf.user_id == self.id) &
Expand Down

0 comments on commit 09decf2

Please sign in to comment.