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

* Fixed #123 split RkiBundeslaenderService into two Services, one for...

* 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
parent 1b36944f
No related branches found
No related tags found
No related merge requests found
...@@ -47,7 +47,8 @@ class EcdcImport(db.Model): ...@@ -47,7 +47,8 @@ class EcdcImport(db.Model):
# sql = "select distinct date_rep, year_week from edcd_import order by year_week desc" # sql = "select distinct date_rep, year_week from edcd_import order by year_week desc"
#return db.session.execute(sql).fetchall() #return db.session.execute(sql).fetchall()
return db.session.query(cls.date_rep) \ 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())\ .order_by(cls.date_rep.desc())\
.all() .all()
......
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