From 782debaf0ac631b136484501e119747b947aa3cc Mon Sep 17 00:00:00 2001 From: thomaswoehlke <thomas.woehlke@gmail.com> Date: Sat, 3 Apr 2021 22:22:29 +0200 Subject: [PATCH] update data --- .../rki_vaccination/rki_vaccination_model_import.py | 4 ++-- src/covid19/blueprints/who/who_model_import.py | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/covid19/blueprints/rki/rki_vaccination/rki_vaccination_model_import.py b/src/covid19/blueprints/rki/rki_vaccination/rki_vaccination_model_import.py index acd71762..c8251426 100644 --- a/src/covid19/blueprints/rki/rki_vaccination/rki_vaccination_model_import.py +++ b/src/covid19/blueprints/rki/rki_vaccination/rki_vaccination_model_import.py @@ -101,9 +101,9 @@ class RkiVaccinationImport(db.Model): from rki_vaccination_data left join - rki_vaccination_date_reported + rki_vaccination_datereported on - rki_vaccination_data.date_reported_id=rki_vaccination_date_reported.id + rki_vaccination_data.date_reported_id=rki_vaccination_datereported.id group by rki_vaccination_import.datum order by diff --git a/src/covid19/blueprints/who/who_model_import.py b/src/covid19/blueprints/who/who_model_import.py index ba0cd3b0..48573d59 100644 --- a/src/covid19/blueprints/who/who_model_import.py +++ b/src/covid19/blueprints/who/who_model_import.py @@ -86,17 +86,17 @@ class WhoImport(db.Model): not in ( select distinct - who_date_reported.date_reported + who_datereported.date_reported from who left join - who_date_reported + who_datereported on - who.date_reported_id=who_date_reported.id + who.date_reported_id=who_datereported.id group by - who_date_reported.date_reported + who_datereported.date_reported order by - who_date_reported.date_reported desc + who_datereported.date_reported desc ) group by application__import__who.date_reported -- GitLab