refactor: Remove debug output lines from trading journal page

This commit is contained in:
Bobby (aider) 2025-02-13 09:36:23 -08:00
parent a37b70d88d
commit b3ac7c1705

View File

@ -365,12 +365,6 @@ def trading_journal_page():
# Display trades grouped by position
for position_id, trades in positions.items():
# Debug logging
st.write(f"Processing position {position_id}")
st.write(f"Number of trades: {len(trades)}")
for trade in trades:
st.write(f"Trade: {trade['direction']} {trade['shares']} shares at {trade['entry_price']}")
# Sort trades chronologically
trades.sort(key=lambda x: x['entry_date'])
first_trade = trades[0]
@ -395,16 +389,6 @@ def trading_journal_page():
st.markdown("---")
# Debug output
st.write("Raw trade ")
for trade in trades:
st.write({
'direction': trade.get('direction', 'unknown'), # Add default value
'shares': trade.get('shares'),
'entry_price': trade.get('entry_price'),
'entry_date': trade.get('entry_date')
})
# Show buy trades
st.subheader("Buy Orders")
for trade in trades: