diff --git a/drees.py b/drees.py
index a71f9a1..aa3bbe9 100644
--- a/drees.py
+++ b/drees.py
@@ -402,7 +402,11 @@ def plot_cumulative_field(
plt.xlabel("date")
plt.ylabel("nombre")
save_and_close_fig(
- fig, os.path.join(OUTPUT_REPOSITORY, f"cumulative_{age_group.name.lower()}_{field.name.lower()}")
+ fig,
+ os.path.join(
+ OUTPUT_REPOSITORY,
+ f"cumulative_{age_group.name.lower()}_{field.name.lower()}",
+ ),
)
@@ -511,10 +515,12 @@ def move_tmp_plots() -> None:
"""
move .tmp.png plots into .png after generation
"""
+ logging.info(f"moving '{OUTPUT_SUFFIX}' file in {FORMAT_SUFFIX}...")
for filename in os.listdir(OUTPUT_REPOSITORY):
file_path = os.path.join(OUTPUT_REPOSITORY, filename)
if re.match(TMP_FILE_REGEX, filename):
os.rename(file_path, file_path.replace(OUTPUT_SUFFIX, FORMAT_SUFFIX))
+ logging.info("files moved")
def generate_html_page(np_date: np.ndarray) -> None:
@@ -533,7 +539,7 @@ def generate_html_page(np_date: np.ndarray) -> None:
"status": VacStatus,
"static": os.path.join(MAIN_URL, STATIC_REPOSITORY),
"src": DATA_URL,
- "period": f"{date_start} -> {date_end}",
+ "period": f"{date_start} - {date_end}",
}
)
with open(os.path.join(BUILD_REPOSITORY, "index.html"), "w") as f:
diff --git a/templates/index.template.html b/templates/index.template.html
index 1f47e8d..a735fd5 100644
--- a/templates/index.template.html
+++ b/templates/index.template.html
@@ -11,13 +11,14 @@
Thegux covid-19
-
période temporelle : {{ period }}
-
Hospitalisations/Soins critiques/Décés par status vaccinal groupés par tranches d'âges
+
période temporelle : {{ period }}
+
pas de temps : journalier
+
Hospitalisations/Soins critiques/Décés par status vaccinal groupés et tranches d'âges
{% for field in fields %}
 }}.png)
{% endfor %}
-
Hospitalisations/Soins critiques/Décés par tranches d'âges groupés par status vaccinal
+
Hospitalisations/Soins critiques/Décés par tranches d'âges groupés et status vaccinal
{% for age in ages %}
{% for field in fields %}