summaryrefslogtreecommitdiff
path: root/build-concerts.py
diff options
context:
space:
mode:
Diffstat (limited to 'build-concerts.py')
-rwxr-xr-xbuild-concerts.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/build-concerts.py b/build-concerts.py
index 0e5a70b..4f55f12 100755
--- a/build-concerts.py
+++ b/build-concerts.py
@@ -6,6 +6,7 @@ import re
from sys import argv
from helpers import (
+ DATE_FORMATTERS,
guess_language,
read_concerts,
relative_path,
@@ -138,18 +139,6 @@ DETAILS_TEMPLATE = '''\
'''
-DATE_FORMATTERS = {
- 'en': {
- 'date': lambda d: d.strftime('%A %B %-d, %Y'),
- 'time': lambda d: d.strftime('%I:%M %P'),
- },
- 'fr': {
- 'date': lambda d: d.strftime('%A %-d %B %Y').capitalize(),
- 'time': lambda d: d.strftime('%Hh%M'),
- },
-}
-
-
def detail_block(tag, classes, content):
opener = f'<{tag} class="{" ".join(classes)}">'
closer = f'</{tag}>'