feat: Add clear filters functionality and improve product filter options in dashboard

This commit is contained in:
2026-03-28 13:02:13 -04:00
parent 25cfa80f20
commit ad5d179ba3
5 changed files with 98 additions and 14 deletions
+7
View File
@@ -65,6 +65,13 @@ def get_stats():
"""Get dashboard stats summary"""
db = get_database()
stats = db.get_dashboard_stats()
# If no check in database, fall back to scraper state's last_check
if not stats.get('last_check'):
state = scraper_state.get_state()
if state.get('last_check'):
stats['last_check'] = {'checked_at': state['last_check']}
return jsonify(stats)