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

start DEV 0.0.15

parent 5607242a
No related branches found
No related tags found
No related merge requests found
...@@ -93,11 +93,11 @@ class VaccinationImport(db.Model): ...@@ -93,11 +93,11 @@ class VaccinationImport(db.Model):
def get_daterep_missing_in_vaccination_data(cls): def get_daterep_missing_in_vaccination_data(cls):
sql_query = """ sql_query = """
select select
datum datum
from from
vaccination_import vaccination_import
where where
date_reported datum
not in ( not in (
select select
distinct distinct
...@@ -105,15 +105,16 @@ class VaccinationImport(db.Model): ...@@ -105,15 +105,16 @@ class VaccinationImport(db.Model):
from from
vaccination_data vaccination_data
left join left join
vaccination_import vaccination_date_reported
on on
vaccination_data.date_reported_id=vaccination_import.id vaccination_data.date_reported_id=vaccination_date_reported.id
) )
group by group by
vaccination_import.date_reported vaccination_import.datum
order by date_reported desc order by datum desc
""" """
new_dates = [] new_dates = []
for item in db.session.execute(sql_query): for item, in db.session.execute(sql_query):
new_dates.append(item['date_reported']) new_dates.append(item)
#new_dates.append(item['date_reported'])
return new_dates return new_dates
\ No newline at end of file
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