diff options
Diffstat (limited to 'build-concerts.py')
| -rwxr-xr-x | build-concerts.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/build-concerts.py b/build-concerts.py index 6e99673..ed37864 100755 --- a/build-concerts.py +++ b/build-concerts.py @@ -9,6 +9,7 @@ from helpers import ( guess_language, read_concerts, relative_path, + split_concerts, tmplocale, touchup_plaintext, ) @@ -19,17 +20,6 @@ from helpers import ( # - canceled => warning -def split_concerts(concerts, threshold): - cutoff = len(concerts) - - for i, c in enumerate(concerts): - if c.time > threshold: - cutoff = i - break - - return reversed(concerts[:cutoff]), concerts[cutoff:] - - LOCALIZED_TEXT = { 'en': { 'past': 'Past concerts', |
