From ba3cef409d722ee8b091ea998b28235439926075 Mon Sep 17 00:00:00 2001 From: pemontto Date: Fri, 10 May 2019 16:23:33 +0100 Subject: [PATCH] show by date descending --- vulnwhisp/vulnwhisp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vulnwhisp/vulnwhisp.py b/vulnwhisp/vulnwhisp.py index b6e3f5b..66e35fe 100755 --- a/vulnwhisp/vulnwhisp.py +++ b/vulnwhisp/vulnwhisp.py @@ -339,7 +339,7 @@ class vulnWhispererBase(object): print '-' * 110 print output_string.format(time='Time'.ljust(19), scan_name='Scan Name'.ljust(60), imported='Imported'.ljust(8), status='Status'.ljust(10)) print '-' * 110 - for scan in sorted(scan_list, key=lambda k: k['time']): + for scan in sorted(scan_list, key=lambda k: k['time'], reverse=True): scan['imported'] = scan['imported'].ljust(8) scan['scan_name'] = scan['scan_name'].encode('utf-8')[:60].ljust(60) scan['time'] = scan['time'][:19].ljust(19)