From 2755855c43601a35154490b6c79b8b585f2bdfee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Vinot?= Date: Wed, 13 Sep 2017 09:37:34 +0200 Subject: [PATCH] Reverse order index page --- lookyloo/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lookyloo/__init__.py b/lookyloo/__init__.py index 70d06826..5423f649 100644 --- a/lookyloo/__init__.py +++ b/lookyloo/__init__.py @@ -55,7 +55,7 @@ def scrape(): with open(os.path.join(dirpath, '{0:0{width}}.har'.format(i, width=width)), 'w') as f: json.dump(harfile, f) i += 1 - return tree(-1) + return tree(0) return render_template('scrape.html') @@ -64,7 +64,7 @@ def get_report_dirs(): for report_dir in os.listdir(HAR_DIR): if not os.listdir(os.path.join(HAR_DIR, report_dir)): os.rmdir(os.path.join(HAR_DIR, report_dir)) - return sorted(os.listdir(HAR_DIR)) + return sorted(os.listdir(HAR_DIR), reverse=True) @app.route('/tree/', methods=['GET'])