Move /ranking -> /index/apps

This commit is contained in:
relikd
2020-09-25 23:16:57 +02:00
parent e2901503f4
commit f7c75d1bd5
8 changed files with 36 additions and 22 deletions

View File

@@ -8,10 +8,11 @@ import index_app_names # get_sorted_app_names
def process(per_page=60):
print('generating html: app-index ...')
title = 'Apps (AZ)'
header = '<h2>' + HTML.a_path([('Results', '/results/')], title) + '</h2>'
header = HTML.h2_path_n_rank(title, [('Results', '/results/')], 'ranking/')
p, a = HTML.write_app_pages(mylib.path_out('index', 'apps'),
index_app_names.get_sorted_app_names(),
title, per_page=per_page, pre=header)
# write_app_pages breaks html_ranking!! call html_ranking after this!
print(' {} apps'.format(a))
print(' {} pages'.format(p))
print('')