From edc3a04d8e12fac351bdf57ea942cde41adc05d7 Mon Sep 17 00:00:00 2001 From: David Korczynski Date: Wed, 24 Aug 2022 19:03:48 +0100 Subject: [PATCH] html_report: add report generation timestamp Ref: https://github.com/ossf/fuzz-introspector/issues/468 --- src/fuzz_introspector/html_report.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fuzz_introspector/html_report.py b/src/fuzz_introspector/html_report.py index b10335113..bf698bc0a 100644 --- a/src/fuzz_introspector/html_report.py +++ b/src/fuzz_introspector/html_report.py @@ -21,6 +21,7 @@ import bs4 import random import string +from datetime import datetime import matplotlib.pyplot as plt from matplotlib.patches import Rectangle @@ -840,6 +841,7 @@ def create_html_report( # Start creation of core html html_body_start = '
' html_overview = "
" + html_overview += "Report generation date:" + datetime.today().strftime('%Y-%m-%d %H:%M:%S') + "" html_overview += html_helpers.html_add_header_with_link( f"Project overview: {report_name}", 1,