Skip to content

Commit

Permalink
add report downloader button
Browse files Browse the repository at this point in the history
  • Loading branch information
brandomr committed Oct 24, 2023
1 parent f154cf7 commit 6e35646
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
9 changes: 8 additions & 1 deletion dashboard/ui/pages/1_TA1.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,16 @@

st.title("TA1 Integration Dashboard")


report = select_report("ta1")

# Download report button
st.download_button(
label="Download report `json`",
data=json.dumps(report, indent=4).encode('utf-8'),
file_name="report.json",
mime="application/json"
)

st.sidebar.markdown("""
# TA1
Expand Down
8 changes: 8 additions & 0 deletions dashboard/ui/pages/2_TA3.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@
# Let the user select a report based on formatted timestamps
report = select_report("ta3")

# Download report button
st.download_button(
label="Download report `json`",
data=json.dumps(report, indent=4).encode('utf-8'),
file_name="report.json",
mime="application/json"
)

report_scenarios = report["scenarios"]
services = report["services"]

Expand Down

0 comments on commit 6e35646

Please sign in to comment.