fix: yes, it was dumb

pull/860/head
Raphaël Vinot 2024-01-08 18:58:59 +01:00
parent 13f7394ba2
commit 539121c4d1
1 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,8 @@ def get_email_template() -> str:
def make_dirs_list(root_dir: Path) -> List[Path]:
directories = []
year_now = date.today().year
while year_now >= year_now - 10:
oldest_year = year_now - 10
while year_now >= oldest_year:
year_dir = root_dir / str(year_now)
if not year_dir.exists():
# if we do not have a directory with this year, continue.