From 59bbe0391bf1706f63bdc8ff8c599cd6d8b7d0f7 Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Mon, 3 Apr 2023 23:28:28 +0800 Subject: [PATCH] fix: consistent metric naming for accept rate --- tabby/admin/pages/Metrics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tabby/admin/pages/Metrics.py b/tabby/admin/pages/Metrics.py index f9f16a6..58485ea 100644 --- a/tabby/admin/pages/Metrics.py +++ b/tabby/admin/pages/Metrics.py @@ -43,7 +43,7 @@ def plot_summary(): with col2: st.metric("Acceptances", sum_acceptances) with col3: - st.metric("Accept Ratio", f"{round(ratio)} %") + st.metric("Accept Rate", f"{round(ratio)} %") plot_summary() @@ -54,7 +54,7 @@ def plot_charts(): st.markdown("### Completion Events") st.line_chart(df, x="Date") - st.markdown("### Acceptance Rate") + st.markdown("### Accept Rate") df["Acceptance Rate"] = df["Acceptances"] / df["Views"] st.line_chart(df, x="Date", y="Acceptance Rate")