Skip to content

Commit

Permalink
table > figure
Browse files Browse the repository at this point in the history
  • Loading branch information
mdingemanse authored Apr 19, 2024
1 parent 992ff39 commit 3850a24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/consolidate_csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3850a24

Please sign in to comment.