Reverse index json file

This commit is contained in:
relikd
2020-09-15 20:39:39 +02:00
parent c139886c61
commit 71bd8e2a43
4 changed files with 83 additions and 8 deletions

View File

@@ -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')
mylib.rm(index_dir)
mylib.rm_dir(index_dir)
mylib.mkdir(index_dir)
apps = [gen_obj(x) for x in mylib.enum_appids()]