Beispiel #1
0
def api_status():
    try:
        status.get()
    except KeyError:
        return json_response({
            'coffee': {'status': 'unknown'}
        })

    return json_response({
        'coffee': status.to_dict()
    })
Beispiel #2
0
def api_status():
    try:
        status.get()
    except KeyError:
        return json_response({
            'coffee': {'status': 'unknown'}
        })

    return json_response({
        'coffee': status.to_dict()
    })
Beispiel #3
0
def api_stats():
    return json_response({
        'stats': status.get_stats()
    })
Beispiel #4
0
def api_stats():
    return json_response({
        'stats': status.get_stats()
    })