Consolidate pytest.ini with pyproject.toml & add test
Some checks failed
Run Tests / run-tests (push) Failing after 29s
Some checks failed
Run Tests / run-tests (push) Failing after 29s
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import streamlit as st
|
||||
|
||||
from streamlit import dialog
|
||||
from tomlkit import key
|
||||
|
||||
from queries import crud, daily_stats, weekly_stats, monthly_stats, yearly_stats
|
||||
from enums import CounterType
|
||||
|
||||
@@ -76,13 +78,14 @@ with st.container(key="counter-table"):
|
||||
if counter_type is CounterType.SIMPLE.value:
|
||||
st.markdown(f"**{stats_current} {stats_current_unit}**")
|
||||
else:
|
||||
st.markdown(f"""
|
||||
**{stats_current} {stats_current_unit}**
|
||||
*{stats_prev} {stats_prev_unit}*
|
||||
""")
|
||||
st.markdown(f"**{stats_current} {stats_current_unit}** *{stats_prev} {stats_prev_unit}*")
|
||||
|
||||
with st.container(horizontal=True, width="stretch", horizontal_alignment="right"):
|
||||
st.page_link("pages/stats.py", icon=":material/bar_chart:", icon_position="right", label="", query_params={"counter_id": str(counter_id)})
|
||||
st.page_link("pages/stats.py",
|
||||
icon=":material/bar_chart:",
|
||||
icon_position="right",
|
||||
label="",
|
||||
query_params={"counter_id": str(counter_id)})
|
||||
|
||||
st.html(f"""
|
||||
<style>
|
||||
|
||||
Reference in New Issue
Block a user