Fix non-existing dir issue
This commit is contained in:
@@ -123,6 +123,8 @@ def gen_stats(c_apps, c_domains, title):
|
||||
<li>List of <a href="/index/domains/all/">Requested Domains</a></li>
|
||||
<li>List of <a href="/index/domains/tracker/">Trackers</a></li>
|
||||
</ul>'''.format(title, c_apps, c_domains, c_recordings, c_logs), title=title)
|
||||
mylib.symlink(index_meta.fname_app_rank(),
|
||||
mylib.path_out('stats', 'rank.json')) # after HTML.write
|
||||
|
||||
|
||||
def process():
|
||||
|
||||
@@ -95,10 +95,7 @@ def write_rank_index(index):
|
||||
index['_ranks'] = len(index)
|
||||
index['_min'] = mins
|
||||
index['_max'] = maxs
|
||||
# write evaluated file
|
||||
fname = fname_app_rank()
|
||||
mylib.json_write(fname, index, pretty=False)
|
||||
mylib.symlink(fname, mylib.path_out('stats', 'rank.json'))
|
||||
mylib.json_write(fname_app_rank(), index, pretty=False)
|
||||
|
||||
|
||||
def get_total_counts():
|
||||
|
||||
Reference in New Issue
Block a user