Permalink
Browse files

Polish

  • Loading branch information...
1 parent a26ca32 commit e09402f03a0b69d4ae7080a277e1d827d7246bc5 @mattupstate committed Apr 4, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 flask_social/datastore.py
@@ -75,7 +75,8 @@ def __init__(self, db, connection_model):
def _query(self, **kwargs):
from mongoengine.queryset import Q, QCombination
queries = map(lambda i: Q(**{i[0]: i[1]}), kwargs.items())
- return self.connection_model.objects(QCombination(QCombination.AND, queries))
+ query = QCombination(QCombination.AND, queries)
+ return self.connection_model.objects(query)
def find_connection(self, **kwargs):
return self._query(**kwargs).first()

0 comments on commit e09402f

Please sign in to comment.