Exemple #1
0
def v3_national_latest():
    data = get_national_data()
    max_key = max(data.keys())

    return Response(
        json.dumps(data[max_key], ensure_ascii=False),
        content_type="application/json; charset=utf-8",
    )
Exemple #2
0
def v3_historical_national():
    return Response(json.dumps(get_national_data(), ensure_ascii=False),
                    content_type="application/json; charset=utf-8")
Exemple #3
0
def v3_national_latest():
    data = get_national_data()
    max_key = max(data.keys())

    return jsonify(data[max_key])
Exemple #4
0
def v3_historical_national():
    return jsonify(get_national_data())
Exemple #5
0
def v3_national_latest():
    data = get_national_data()
    max_key = max(data.keys())

    return json.dumps(data[max_key], ensure_ascii=False)
Exemple #6
0
def v3_historical_national():
    return json.dumps(get_national_data(), ensure_ascii=False)