From c6637eddb6e7f9e81d4153788c93bac48093907f Mon Sep 17 00:00:00 2001 From: thomaswoehlke <thomas.woehlke@gmail.com> Date: Sun, 14 Feb 2021 08:18:12 +0100 Subject: [PATCH] * Fixed #123 split RkiBundeslaenderService into two Services, one for bundeslaender and one for landkreise * Fixed #128 add fields from csv to RkiLandkreiseImport * Fixed #139 refactor RkiBundeslaenderServiceDownload to new method scheme introduced 07.02.2021 * Fixed #140 move WhoImport to RKI in: rk_service_import.py * Fixed #125 implement RkiLandkreise * Fixed #126 implement RkiBundeslaenderImport --- src/covid19/blueprints/ecdc/ecdc_model_import.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/covid19/blueprints/ecdc/ecdc_model_import.py b/src/covid19/blueprints/ecdc/ecdc_model_import.py index 7344a66a..747efcfc 100644 --- a/src/covid19/blueprints/ecdc/ecdc_model_import.py +++ b/src/covid19/blueprints/ecdc/ecdc_model_import.py @@ -47,7 +47,8 @@ class EcdcImport(db.Model): # sql = "select distinct date_rep, year_week from edcd_import order by year_week desc" #return db.session.execute(sql).fetchall() return db.session.query(cls.date_rep) \ - .group_by(cls.date_rep).distinct() \ + .group_by(cls.date_rep)\ + .distinct() \ .order_by(cls.date_rep.desc())\ .all() -- GitLab