invenio_migrator/legacy/featured_communities.py
def get(*args, **kwargs):
    """Get communities."""
    from invenio.modules.communities.models import FeaturedCommunity
    q = FeaturedCommunity.query
    return q.count(), q.all()
def get(*args, **kwargs):
    """Get communities."""
    from invenio.modules.communities.models import FeaturedCommunity
    q = FeaturedCommunity.query
    return q.count(), q.all()
def get ( * args , * * kwargs ) : from invenio . modules . communities . models import FeaturedCommunity q = FeaturedCommunity . query return q . count ( ) , q . all ( )
Get communities.
Get communities .