fixed the clear filter button for dates in team leaderboard
This MR fixes the Clear Filter functionality in the Team Leaderboard Date Range Filter.
Previously, clicking the Clear Filter button did not properly reset the selected date range or remove the applied filtering logic. As a result, the leaderboard continued showing filtered results even after clearing.
Issue Fixed
- “From Date” and “To Date” were not resetting
- Date-related session state variables were not cleared
- Filter info message remained visible
- Leaderboard continued to use the previous date range
✅ Changes Made
- Properly reset date inputs to
None - Cleared related
st.session_statekeys - Removed filter info message after clearing
- Ensured leaderboard reloads with full history
- Verified correct behavior across multiple filter/clear cycles
🎯 Result
The Clear Filter button now:
- Resets the UI correctly
- Removes backend date filtering
- Displays full unfiltered leaderboard results