From c396861bccb93bd5fe3a5d256be8c35cd1f205be Mon Sep 17 00:00:00 2001 From: relikd Date: Wed, 23 Sep 2020 20:52:30 +0200 Subject: [PATCH] Fix non-existing dir issue --- src/html_index_domains.py | 2 ++ src/index_meta.py | 5 +---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/html_index_domains.py b/src/html_index_domains.py index 322a9b1..f2c7cc1 100755 --- a/src/html_index_domains.py +++ b/src/html_index_domains.py @@ -123,6 +123,8 @@ def gen_stats(c_apps, c_domains, title):
  • List of Requested Domains
  • List of Trackers
  • '''.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(): diff --git a/src/index_meta.py b/src/index_meta.py index e5573b1..62849c5 100755 --- a/src/index_meta.py +++ b/src/index_meta.py @@ -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():