From 3850a24d9cf6f03e0415761a4219d53f0125c15f Mon Sep 17 00:00:00 2001 From: mdingemanse Date: Fri, 19 Apr 2024 13:02:12 +0200 Subject: [PATCH] table > figure --- scripts/consolidate_csv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/consolidate_csv.py b/scripts/consolidate_csv.py index 2955b1d..fa89b65 100644 --- a/scripts/consolidate_csv.py +++ b/scripts/consolidate_csv.py @@ -155,10 +155,10 @@ def create_figure(figure): # find the target location target_element = soup.find(id="included-table") # Convert the HTML code string into a BeautifulSoup object and append it to the target element - target_element.append(BeautifulSoup(table, 'html.parser')) + target_element.append(BeautifulSoup(figure, 'html.parser')) # Add build time info utc_datetime = datetime.datetime.utcnow() - build_message = utc_datetime.strftime("Table last built on %Y-%m-%d at %H:%M UTC") + build_message = utc_datetime.strftime("Figure last built on %Y-%m-%d at %H:%M UTC") target_footer = soup.find(id="build-time") target_footer.string = build_message # write to disk