Skip to content

Commit 58e00a0

Browse files
committed
Add Frequency Pills in Cashflow tab
1 parent e7446d8 commit 58e00a0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/ui/layout.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,8 +406,14 @@ def render_income_stmt(financial_data, *kwargs):
406406

407407

408408
def render_cashflow(financial_data, *kwargs):
409+
frequency = pills(
410+
"Select report frequency:",
411+
["Annual", "Quarterly"],
412+
key="frequency_cashflow",
413+
)
414+
409415
cashflow = financial_data.get_cashflow(
410-
st.session_state["ticker"], frequency="quarterly"
416+
st.session_state["ticker"], frequency=report_frequency_mapping[frequency]
411417
)
412418

413419
st.markdown("#### Cashflow Overview")

0 commit comments

Comments
 (0)