Small changes + app index has new url path
This commit is contained in:
@@ -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 (A–Z)</h2>
|
||||
<h2 class="center">Apps (A–Z)</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)
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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())
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<header>
|
||||
<nav>
|
||||
<ul id="main-nav">
|
||||
<li><a href="/index/page/1/">All Apps</a></li>
|
||||
<li><a href="/index/apps/1/">Results</a></li>
|
||||
<li><a href="/stats/">Stats</a></li>
|
||||
<li><a href="/help/">Help needed</a></li>
|
||||
<li><a class="no-ul" href="https://github.com/relikd/appcheck" target="_blank"><img src="/static/github.svg" alt="GitHub"></a></li>
|
||||
|
||||
Reference in New Issue
Block a user