Small changes + app index has new url path

This commit is contained in:
relikd
2020-09-19 16:10:56 +02:00
parent 78ff986a67
commit b4799a8d2c
5 changed files with 7 additions and 7 deletions

View File

@@ -51,7 +51,7 @@ def gen_page(arr, base, page_id=1, total=1):
content = ''.join([gen_entry(x) for x in arr])
pagination = gen_pager(page_id, total) # if total > 1 else ''
fp.write(mylib.template_with_base('''
<h2>List of app recordings (AZ)</h2>
<h2 class="center">Apps (AZ)</h2>
<div id="app-toc" class="center no_ul_all">
{}
</div>
@@ -60,7 +60,7 @@ def gen_page(arr, base, page_id=1, total=1):
def process(per_page=60):
print('generating app-index ...')
index_dir = mylib.path_out('index', 'page')
index_dir = mylib.path_out('index', 'apps')
mylib.rm_dir(index_dir)
mylib.mkdir(index_dir)

View File

@@ -23,7 +23,7 @@ def gen_root():
</p>
<h2>Results</h2>
<p>
If you're just interested in the results, go ahead to <a href="/index/page/1/">all apps</a>.
If you're just interested in the results, go ahead to see <a href="/index/apps/1/">all apps</a>.
</p>
<h2>Current research</h2>
<p>

View File

@@ -103,7 +103,7 @@ def enrich_with_bundle_ids(index):
def process(bundle_ids, deleteOnly=False):
print('writing index: reverse domains ...')
print('writing index: domains ...')
fname = fname_all()
if bundle_ids == ['*']:
bundle_ids = list(mylib.enum_data_appids())

View File

@@ -70,10 +70,10 @@ def combine_and_update(bundle_ids, where=None):
rebuild_name_index(new_ids) # after bundle_download
# 3. re-calculate combined.json and evaluated.json files
affected = bundle_combine.process(bundle_ids, where=where)
# special case needed for reverse index. '*' will force rebuilt index
# special case needed for domain index. '*' will force rebuilt index
if not where and bundle_ids == ['*']:
affected = ['*']
# 4. was any json updated? if so, make html and update reverse index
# 4. was any json updated? if so, make html and update domain index
if len(affected) > 0:
rebuild_domain_index(affected) # after bundle_combine
html_bundle.process(affected) # after index_app_names