Files
appchk-web/src/html_index_apps.py
2020-10-13 19:46:13 +02:00

23 lines
706 B
Python
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/usr/bin/env python3
import lib_common as mylib
import lib_html as HTML
import index_app_names # get_sorted_app_names
def process(per_page=60):
print('generating html: app-index ...')
title = 'Apps (AZ)'
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('')
if __name__ == '__main__':
process()