Fix app count in domain index
This commit is contained in:
3
Makefile
3
Makefile
@@ -30,6 +30,5 @@ remote-build:
|
|||||||
local:
|
local:
|
||||||
src/main.py run '*'
|
src/main.py run '*'
|
||||||
server:
|
server:
|
||||||
@cd out
|
|
||||||
@open http://127.0.0.1
|
@open http://127.0.0.1
|
||||||
python3 -m http.server 80
|
@cd out && python3 -m http.server 80
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ def gen_html_top_10(path, subset, total, title):
|
|||||||
|
|
||||||
|
|
||||||
def gen_html_trinity(idx_dir, app_count, json, title, symlink):
|
def gen_html_trinity(idx_dir, app_count, json, title, symlink):
|
||||||
list1 = [(dom, len(ids)) for dom, ids in json['subdom'].items()]
|
list1 = [(dom, len(ids) - 1) for dom, ids in json['subdom'].items()]
|
||||||
list2 = [(dom, len(ids)) for dom, ids in json['pardom'].items()]
|
list2 = [(dom, len(ids) - 1) for dom, ids in json['pardom'].items()]
|
||||||
|
|
||||||
def write_index(fname, title, button):
|
def write_index(fname, title, button):
|
||||||
HTML.write(idx_dir, '<h2>{}</h2>{}{}'.format(
|
HTML.write(idx_dir, '<h2>{}</h2>{}{}'.format(
|
||||||
|
|||||||
Reference in New Issue
Block a user