def query_exists(filters):
        """Return True if a kb with the given filters exists.

        E.g: KnwKB.query_exists(KnwKB.name.like('FAQ'))

        :param filters: filter for sqlalchemy
        :return: True if kb exists
        """
        return db.session.query(
            KnwKB.query.filter(
                filters).exists()).scalar()
def query_exists ( filters ) : return db . session . query ( KnwKB . query . filter ( filters ) . exists ( ) ) . scalar ( )
Return True if a kb with the given filters exists.

        E.g: KnwKB.query_exists(KnwKB.name.like('FAQ'))

        :param filters: filter for sqlalchemy
        :return: True if kb exists