Skip to content

Commit

Permalink
python 2.7 pymongo 2.7 tests passing
Browse files Browse the repository at this point in the history
  • Loading branch information
John Furr authored and John Furr committed Oct 2, 2016
1 parent 91e9b29 commit 5452d53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mongolog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def find(cls, logger=None, query=None, project=None, uuid=None, level=None, limi
if limit:
aggregate_commands.append({"$limit": limit})

return db.mongolog.aggregate(aggregate_commands)
results = db.mongolog.aggregate(aggregate_commands)
return results['result'] if isinstance(results, dict) else results


class LogRecord(dict):
Expand Down

0 comments on commit 5452d53

Please sign in to comment.