Skip to content
Snippets Groups Projects
Commit 96eeb324 authored by thomaswoehlke's avatar thomaswoehlke
Browse files

Refactoring: vaccination

parent 5073c18b
No related branches found
No related tags found
1 merge request!162Refactoring 2021 05 20 start
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment