Skip to content

Commit

Permalink
work in progress for idaholab#329, improve extracted_files download page
Browse files Browse the repository at this point in the history
  • Loading branch information
mmguero committed Feb 2, 2024
1 parent 6821248 commit a3bb3e0
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions file-monitor/scripts/extracted_files_http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,17 @@ def do_GET(self):
with div(cls='container').add(div(cls="row")).add(div(cls="col-lg-12")):
with table(cls='table-bordered', width='100%').add(tbody()):
# header row
t = tr()
t = tr(style="text-align: center")
t.add(
th("Name"),
th("Download"),
th("Type" if args.magic else "Extension"),
th("Size"),
)
if args.malcolm:
t.add(
th("Source", style="text-align: center"),
th("IDs", style="text-align: center"),
th("Timestamp", style="text-align: center"),
th("Source"),
th("IDs"),
th("Timestamp"),
)
if fileBaseName != '.':
t = tr()
Expand Down Expand Up @@ -248,7 +248,15 @@ def do_GET(self):
],
style="text-align: center",
),
td(timestampStr, style="text-align: center"),
td(
(
timestamp.strftime("%Y-%m-%d %H:%M:%S")
if timestamp
else timestampStr
),
title=timestampStr,
style="text-align: center",
),
)
else:
# file name format was not recognized, so extra columns are empty
Expand Down

0 comments on commit a3bb3e0

Please sign in to comment.