scout/adapter/mongo/event.py
def user_events(self, user_obj=None):
        """Fetch all events by a specific user."""
        query = dict(user_id=user_obj['_id']) if user_obj else dict()
        return self.event_collection.find(query)
def user_events(self, user_obj=None):
        query = dict(user_id=user_obj['_id']) if user_obj else dict()
        return self.event_collection.find(query)
def user_events ( self , user_obj = None ) : query = dict ( user_id = user_obj [ '_id' ] ) if user_obj else dict ( ) return self . event_collection . find ( query )
Fetch all events by a specific user.
Fetch all events by a specific user .