|
|
@ -132,15 +132,24 @@ def rki_landkreis_daten_erstellen(quelle, daten):
|
|
|
|
def intensivbetten_daten_erstellen(daten):
|
|
|
|
def intensivbetten_daten_erstellen(daten):
|
|
|
|
daten_dict = {}
|
|
|
|
daten_dict = {}
|
|
|
|
for data in daten:
|
|
|
|
for data in daten:
|
|
|
|
daten_dict[data['bundesland']] = (db.Intensivregister(
|
|
|
|
daten_dict[data["data"]['bundesland']] = (db.Intensivregister(
|
|
|
|
datetime.datetime.strptime(data['creationTimestamp'], "%Y-%m-%dT%H:%M:%SZ"),
|
|
|
|
datetime.datetime.strptime(data["data"]['creationTimestamp'], "%Y-%m-%dT%H:%M:%SZ"),
|
|
|
|
data['bundesland'],
|
|
|
|
data["data"]['bundesland'],
|
|
|
|
data['faelleCovidAktuell'],
|
|
|
|
data["data"]['faelleCovidAktuell'],
|
|
|
|
data['faelleCovidAktuellBeatmet'],
|
|
|
|
data["data"]['faelleCovidAktuellBeatmet'],
|
|
|
|
data['intensivBettenBelegt'],
|
|
|
|
data["data"]['intensivBettenBelegt'],
|
|
|
|
data['intensivBettenFrei'],
|
|
|
|
data["data"]['intensivBettenFrei'],
|
|
|
|
data['intensivBettenNotfall7d']
|
|
|
|
data["data"]['intensivBettenNotfall7d']
|
|
|
|
))
|
|
|
|
))
|
|
|
|
|
|
|
|
daten_dict["GESAMT"] = (db.Intensivregister(
|
|
|
|
|
|
|
|
datetime.datetime.strptime(daten["overallSum"]['creationTimestamp'], "%Y-%m-%dT%H:%M:%SZ"),
|
|
|
|
|
|
|
|
daten["overallSum"]['bundesland'],
|
|
|
|
|
|
|
|
daten["overallSum"]['faelleCovidAktuell'],
|
|
|
|
|
|
|
|
daten["overallSum"]['faelleCovidAktuellBeatmet'],
|
|
|
|
|
|
|
|
daten["overallSum"]['intensivBettenBelegt'],
|
|
|
|
|
|
|
|
daten["overallSum"]['intensivBettenFrei'],
|
|
|
|
|
|
|
|
daten["overallSum"]['intensivBettenNotfall7d']
|
|
|
|
|
|
|
|
))
|
|
|
|
return daten_dict
|
|
|
|
return daten_dict
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|