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", )
def v3_historical_national(): return Response(json.dumps(get_national_data(), ensure_ascii=False), content_type="application/json; charset=utf-8")
def v3_national_latest(): data = get_national_data() max_key = max(data.keys()) return jsonify(data[max_key])
def v3_historical_national(): return jsonify(get_national_data())
def v3_national_latest(): data = get_national_data() max_key = max(data.keys()) return json.dumps(data[max_key], ensure_ascii=False)
def v3_historical_national(): return json.dumps(get_national_data(), ensure_ascii=False)