From 917b98b71791bdd1b6779f3208d62ec5e12e8a55 Mon Sep 17 00:00:00 2001 From: thomaswoehlke <thomas.woehlke@gmail.com> Date: Thu, 27 May 2021 01:31:43 +0200 Subject: [PATCH] Refactoring: vaccination --- src/flask_covid19/blueprints/data_rki/rki_model_import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask_covid19/blueprints/data_rki/rki_model_import.py b/src/flask_covid19/blueprints/data_rki/rki_model_import.py index f450330a..1ae35a13 100644 --- a/src/flask_covid19/blueprints/data_rki/rki_model_import.py +++ b/src/flask_covid19/blueprints/data_rki/rki_model_import.py @@ -147,7 +147,7 @@ class RkiImport(AllImport): @classmethod def find_by_meldedatum_and_landkreis(cls, my_datum: str, my_landkreis: str): return db.session.query(cls) \ - .filter(and_(cls.datum == my_datum), (cls.landkreis == my_landkreis)) \ + .filter(and_(cls.date_reported_import_str == my_datum), (cls.landkreis.id == my_landkreis.id)) \ .order_by(cls.landkreis.asc()) \ .all() -- GitLab