github-actions[bot] commited on
Commit
6ed4e08
·
1 Parent(s): 007b0fc

Add all files with LFS support

Browse files
Files changed (1) hide show
  1. components.py +2 -2
components.py CHANGED
@@ -200,8 +200,8 @@ def render_dataset_metadata(
200
  st.markdown("### Dataset Metadata")
201
  st.markdown(f"**Total Records:** {metadata['total_records']:,}")
202
 
203
- current_start = st.session_state.get("start_date", min_date)
204
- current_end = st.session_state.get("end_date", max_date)
205
 
206
  date_range_text = f"**Date Range:** {current_start.strftime('%Y-%m-%d')} to {current_end.strftime('%Y-%m-%d')}"
207
  st.markdown(date_range_text)
 
200
  st.markdown("### Dataset Metadata")
201
  st.markdown(f"**Total Records:** {metadata['total_records']:,}")
202
 
203
+ current_start = st.session_state.get("start_date") or min_date
204
+ current_end = st.session_state.get("end_date") or max_date
205
 
206
  date_range_text = f"**Date Range:** {current_start.strftime('%Y-%m-%d')} to {current_end.strftime('%Y-%m-%d')}"
207
  st.markdown(date_range_text)