diff --git a/src/covid19/blueprints/ecdc/ecdc_model.py b/src/covid19/blueprints/ecdc/ecdc_model.py index cdc2075051812ec3063b27c64c295ae901c436db..8c1b86fbb5574260918e7a64975b998737d31658 100644 --- a/src/covid19/blueprints/ecdc/ecdc_model.py +++ b/src/covid19/blueprints/ecdc/ecdc_model.py @@ -21,6 +21,9 @@ class EcdcDateReported(ApplicationDateReported): day_of_week = db.Column(db.Integer, nullable=False) week_of_year = db.Column(db.Integer, nullable=False) + def get_name_for_datum(self): + return self.date_reported + def get_date_import_format_from_date_reported(self): my_date_parts = self.date_reported.split("-") my_year = my_date_parts[0] diff --git a/src/covid19/blueprints/ecdc/templates/ecdc/fragments/fragment_ecdc_table_continent.html b/src/covid19/blueprints/ecdc/templates/ecdc/fragments/fragment_ecdc_table_continent.html index 2b8cada631f43e6d49d916234e81a57b1932f31d..c8cc93b00c0b31935c52a54f14385477e93ebdd4 100644 --- a/src/covid19/blueprints/ecdc/templates/ecdc/fragments/fragment_ecdc_table_continent.html +++ b/src/covid19/blueprints/ecdc/templates/ecdc/fragments/fragment_ecdc_table_continent.html @@ -10,7 +10,7 @@ <td> <!-- TODO: change URL to for_url() --> <a href="/ecdc/continent/{{ europe_continent.id }}"> - {{ europe_continent.continent_exp }} + {{ europe_continent.region }} </a> </td> </tr> diff --git a/src/covid19/blueprints/ecdc/templates/ecdc/fragments/fragment_ecdc_table_country.html b/src/covid19/blueprints/ecdc/templates/ecdc/fragments/fragment_ecdc_table_country.html index 7676b453e594294816d430138e02b7f46571e3fe..a55aaa9d1ac93015b96cd88af1164237992ee6a3 100644 --- a/src/covid19/blueprints/ecdc/templates/ecdc/fragments/fragment_ecdc_table_country.html +++ b/src/covid19/blueprints/ecdc/templates/ecdc/fragments/fragment_ecdc_table_country.html @@ -31,7 +31,7 @@ </td> <td> <a href="/ecdc/continent/{{ europe_country.continent.id }}"> - {{ europe_country.continent.continent_exp }} + {{ europe_country.continent.region }} </a> </td> </tr>