Browse Source

Fix sorting

master
Niels G. W. Serup 2 months ago
parent
commit
c3648852ea
Signed by: ngws GPG Key ID: 38EEEBCE67324F19
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      scripts/generate-pages.py

+ 1
- 1
scripts/generate-pages.py View File

@ -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…
Cancel
Save