Fix script
This commit is contained in:
parent
a4a160a797
commit
efd62a6f56
|
@ -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: (p[1].get('lastupdated') or '9999', p[0]), reverse=True)
|
||||
pages_new.sort(key=lambda p: ('9999' if p[1] is None else p[1].get('lastupdated'), p[0]), reverse=True)
|
||||
md = ''
|
||||
for page in pages_new:
|
||||
ptitle, pyaml, url, _ = page
|
||||
|
|
Loading…
Reference in New Issue