summaryrefslogtreecommitdiff
path: root/build-concerts.py
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2022-02-23 20:29:50 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2022-02-23 21:04:27 +0100
commita3b76e82d935d78e41aa54c3228dbd6fb9e36fc1 (patch)
tree9f528b27708f510327f4ad45ec7926178d0c79e4 /build-concerts.py
parentcd1fde0ab2914ae44f1872927dbbe6fc19d63743 (diff)
downloadquatuorbellefeuille.com-a3b76e82d935d78e41aa54c3228dbd6fb9e36fc1.tar.xz
Fix instructions HTMLization & tidy up
Thank Humanity for linters.
Diffstat (limited to 'build-concerts.py')
-rwxr-xr-xbuild-concerts.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/build-concerts.py b/build-concerts.py
index 4f55f12..6e99673 100755
--- a/build-concerts.py
+++ b/build-concerts.py
@@ -2,7 +2,6 @@
from datetime import datetime
from pathlib import Path
-import re
from sys import argv
from helpers import (
@@ -71,17 +70,19 @@ THUMBNAIL_TEMPLATE = '''\
def format_credits(illustration):
- credits = illustration.source_name
+ attribution = illustration.source_name
if illustration.source_link is not None:
- credits = (f'<a href="{illustration.source_link}" target="_blank">'
- f'{illustration.source_name}'
- '</a>')
+ attribution = (
+ f'<a href="{illustration.source_link}" target="_blank">'
+ f'{illustration.source_name}'
+ '</a>'
+ )
if illustration.license_info is not None:
- credits += ' / ' + illustration.license_info.format()
+ attribution += ' / ' + illustration.license_info.format()
- return credits
+ return attribution
def format_thumbnail(concert, imgdir, lang):