From 96eeb3242be8ccfbc4fc49ceb9cea7bd1fa6eb5c Mon Sep 17 00:00:00 2001 From: thomaswoehlke <thomas.woehlke@gmail.com> Date: Wed, 26 May 2021 18:12:25 +0200 Subject: [PATCH] Refactoring: vaccination --- src/flask_covid19/blueprints/data_rki/rki_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flask_covid19/blueprints/data_rki/rki_model.py b/src/flask_covid19/blueprints/data_rki/rki_model.py index dde87528..2ac83217 100644 --- a/src/flask_covid19/blueprints/data_rki/rki_model.py +++ b/src/flask_covid19/blueprints/data_rki/rki_model.py @@ -281,7 +281,7 @@ class RkiData(BlueprintFactTable): @classmethod def find_by_date_reported_and_location(cls, date_reported: RkiMeldedatum, location: RkiLandkreis): return db.session.query(cls).filter( - and_((cls.date_reported.id == date_reported.id), (cls.location.id == location.id)) + and_((cls.date_reported == date_reported), (cls.location == location)) ).one_or_none() @classmethod -- GitLab