Fix script

How did this use to work?
This commit is contained in:
Niels G. W. Serup 2022-11-14 22:40:31 +01:00
parent efd62a6f56
commit 6c357f8d76
No known key found for this signature in database
GPG Key ID: 38EEEBCE67324F19
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ def markdown_to_html(input_file, output_dir):
pages_new.append(('Potators', {'abstract': 'Do not look.', 'lastupdated': '2011'}, '/potator/', '/potator/'))
pages_new.sort(key=lambda p: ('9999' if p[1] is None else p[1].get('lastupdated'), p[0]), reverse=True)
pages_new.sort(key=lambda p: ('9999' if p[1] is None else p[1].get('lastupdated') or '9999', p[0]), reverse=True)
md = ''
for page in pages_new:
ptitle, pyaml, url, _ = page