From a96b4464769132403f9cfa72f488efdd778d357e Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 4 Apr 2023 00:06:11 +0200 Subject: Fix index generation when there are no next concerts yet --- build-concerts.py | 2 +- en/index.html | 4 ++-- helpers.py | 2 +- index.html | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build-concerts.py b/build-concerts.py index 2290a1f..7348806 100755 --- a/build-concerts.py +++ b/build-concerts.py @@ -129,7 +129,7 @@ def print_thumbnails(concerts, imgdir, lang): print('
') print_thumbnails_section(next_concerts, imgdir, 'next', lang) - print_thumbnails_section(past_concerts, imgdir, 'past', lang) + print_thumbnails_section(list(reversed(past_concerts)), imgdir, 'past', lang) print('
') diff --git a/en/index.html b/en/index.html index 5dedf8a..8548f3b 100644 --- a/en/index.html +++ b/en/index.html @@ -1,7 +1,7 @@
- +

- February
11 + February
12

diff --git a/helpers.py b/helpers.py index c46e652..8ff2b96 100644 --- a/helpers.py +++ b/helpers.py @@ -153,7 +153,7 @@ def split_concerts(concerts, threshold): cutoff = i break - return reversed(concerts[:cutoff]), concerts[cutoff:] + return concerts[:cutoff], concerts[cutoff:] _TOUCHUPS = ( diff --git a/index.html b/index.html index e1a7217..a9904e0 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@
- +

- 11
février + 12
février

-- cgit v1.2.3