(domain, app_id)
return app['doc'] if app else None
Get the latest starred build for the application
Get the latest starred build for the application
Get the latest starred build for the application
def get_latest_released_app_doc(domain, app_id):
    """Get the latest starred build for the application"""
    from .models import Application
    key = ['^ReleasedApplications', domain, app_id]
    app = Application.get_db().view(
        'app_manager/applications',
        startkey=key + [{}],
        endkey=key,
        descending=True,
        include_docs=True,
        limit=1,
    ).first()
    return app['doc'] if app else None
def get_latest_released_app_doc ( domain , app_id ) : from . models import Application key = [ '^ReleasedApplications' , domain , app_id ] app = Application . get_db ( ) . view ( 'app_manager/applications' , startkey = key + [ { } ] , endkey = key , descending = True , include_docs = True , limit = 1 , ) . first ( ) return app [ 'doc' ] if app else None