pyca/utils.py
def get_service_status(service):
    '''Update the status of a particular service in the database.
    '''
    dbs = db.get_session()
    srvs = dbs.query(db.ServiceStates).filter(db.ServiceStates.type == service)

    if srvs.count():
        return srvs[0].status

    return db.ServiceStatus.STOPPED
def get_service_status(service):
    '''Update the status of a particular service in the database.
    '''
    dbs = db.get_session()
    srvs = dbs.query(db.ServiceStates).filter(db.ServiceStates.type == service)

    if srvs.count():
        return srvs[0].status

    return db.ServiceStatus.STOPPED
def get_service_status ( service ) : dbs = db . get_session ( ) srvs = dbs . query ( db . ServiceStates ) . filter ( db . ServiceStates . type == service ) if srvs . count ( ) : return srvs [ 0 ] . status return db . ServiceStatus . STOPPED
Update the status of a particular service in the database.
Update the status of a particular service in the database .