def first(self, **kwargs):
        """
        Queries database for first result of view
        :return:
        """
        result = yield self.get(**kwargs)

        if not result['rows']:
            raise exceptions.NotFound()

        raise Return(result['rows'][0])
def first ( self , ** kwargs ) : result = yield self . get ( ** kwargs ) if not result [ 'rows' ] : raise exceptions . NotFound ( ) raise Return ( result [ 'rows' ] [ 0 ] )
Queries database for first result of view
        :return: