summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2023-04-04 00:06:11 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2023-04-04 00:06:11 +0200
commita96b4464769132403f9cfa72f488efdd778d357e (patch)
tree3dd0b2a0897b7628c6a64307fcd2a90f56a13e6b
parent09438c049bc40c75ba5893e9836801169c9d81e0 (diff)
downloadquatuorbellefeuille.com-a96b4464769132403f9cfa72f488efdd778d357e.tar.xz
Fix index generation when there are no next concerts yet
-rwxr-xr-xbuild-concerts.py2
-rw-r--r--en/index.html4
-rw-r--r--helpers.py2
-rw-r--r--index.html4
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('<div id="event-list">')
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('</div>')
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 @@
<main>
- <a id="next-concert" href="concerts.html#concert-2023-02-11">
+ <a id="next-concert" href="concerts.html#concert-2023-02-12">
<p>
- <span id="month">February</span><br><span id="day">11</span>
+ <span id="month">February</span><br><span id="day">12</span>
</p>
</a>
</main>
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 @@
<main>
- <a id="next-concert" href="concerts.html#concert-2023-02-11">
+ <a id="next-concert" href="concerts.html#concert-2023-02-12">
<p>
- <span id="day">11</span><br><span id="month">février</span>
+ <span id="day">12</span><br><span id="month">février</span>
</p>
</a>
</main>