From 45b1efaa138cfc02ea84d56e833015e937100ec4 Mon Sep 17 00:00:00 2001 From: thomaswoehlke <thomas.woehlke@gmail.com> Date: Tue, 25 May 2021 11:58:43 +0200 Subject: [PATCH] Refactoring: vaccination --- data | 2 +- src/flask_covid19/blueprints/data_ecdc/ecdc_model.py | 1 + src/flask_covid19/blueprints/data_owid/owid_model.py | 2 ++ src/flask_covid19/blueprints/data_rki/rki_model.py | 1 + 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/data b/data index e7ed2589..931e10de 160000 --- a/data +++ b/data @@ -1 +1 @@ -Subproject commit e7ed25899840597abae0aa240004ce1b6ea1122c +Subproject commit 931e10de77a215881bc4fb87ed3e369a97e516b6 diff --git a/src/flask_covid19/blueprints/data_ecdc/ecdc_model.py b/src/flask_covid19/blueprints/data_ecdc/ecdc_model.py index b8d91ac6..a8cb98c4 100644 --- a/src/flask_covid19/blueprints/data_ecdc/ecdc_model.py +++ b/src/flask_covid19/blueprints/data_ecdc/ecdc_model.py @@ -232,6 +232,7 @@ class EcdcCountry(BlueprintLocation): class EcdcData(BlueprintFactTable): __tablename__ = 'ecdc' + __mapper_args__ = {'concrete': True} id = db.Column(db.Integer, primary_key=True) deaths = db.Column(db.Integer, nullable=False) diff --git a/src/flask_covid19/blueprints/data_owid/owid_model.py b/src/flask_covid19/blueprints/data_owid/owid_model.py index 748976ea..a86be378 100644 --- a/src/flask_covid19/blueprints/data_owid/owid_model.py +++ b/src/flask_covid19/blueprints/data_owid/owid_model.py @@ -86,6 +86,7 @@ class OwidContinent(BlueprintLocationGroup): class OwidCountry(BlueprintLocation): __tablename__ = 'owid_country' + __mapper_args__ = {'concrete': True} __table_args__ = ( db.UniqueConstraint('iso_code', 'location', name="uix_owid_country"), ) @@ -176,6 +177,7 @@ class OwidCountry(BlueprintLocation): class OwidData(BlueprintFactTable): __tablename__ = 'owid' + __mapper_args__ = {'concrete': True} id = db.Column(db.Integer, primary_key=True) date_reported_id = db.Column(db.Integer, diff --git a/src/flask_covid19/blueprints/data_rki/rki_model.py b/src/flask_covid19/blueprints/data_rki/rki_model.py index 54c658c1..2615364b 100644 --- a/src/flask_covid19/blueprints/data_rki/rki_model.py +++ b/src/flask_covid19/blueprints/data_rki/rki_model.py @@ -179,6 +179,7 @@ class RkiLandkreis(BlueprintLocation): class RkiData(BlueprintFactTable): __tablename__ = 'rki' + __mapper_args__ = {'concrete': True} id = db.Column(db.Integer, primary_key=True) fid = db.Column(db.String(255), nullable=False) -- GitLab