Fix sorting
This commit is contained in:
parent
426206f9fc
commit
c3648852ea
|
@ -143,7 +143,7 @@ def main():
|
|||
media_files = [os.path.join(media_dir, media_file)
|
||||
for media_file in os.listdir(media_dir)]
|
||||
medias = [load_media(media_file) for media_file in media_files]
|
||||
medias.sort(key=lambda m: (m['date'], m['ident']), reverse=True)
|
||||
medias.sort(key=lambda m: (str(m['date']), m['ident']), reverse=True)
|
||||
|
||||
site_new_dir = setup_directory_structure(settings, base_dir, template_dir)
|
||||
generate_index_page(site_new_dir, base_html, section_html, medias)
|
||||
|
|
Loading…
Reference in New Issue