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

work

parent a47943b7
No related branches found
No related tags found
No related merge requests found
......@@ -45,13 +45,13 @@ class EuropeDataImport(db.Model):
@classmethod
def get_date_rep(cls):
# TODO: #109 SQLalchemy instead of SQL in: EuropeDataImport.get_date_rep
sql = "select distinct date_rep, year_week from europe_data_import order by year_week desc"
sql = "select distinct date_rep, year_week from europe_import order by year_week desc"
return db.session.execute(sql).fetchall()
@classmethod
def get_continent(cls):
# TODO: #110 SQLalchemy instead of SQL in: EuropeDataImport.get_continent
sql = "select distinct continent_exp from europe_data_import order by continent_exp asc"
sql = "select distinct continent_exp from europe_import order by continent_exp asc"
return db.session.execute(sql).fetchall()
@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