diff --git a/routes/__pycache__/main.cpython-313.pyc b/routes/__pycache__/main.cpython-313.pyc index cf1083a..48f270d 100644 Binary files a/routes/__pycache__/main.cpython-313.pyc and b/routes/__pycache__/main.cpython-313.pyc differ diff --git a/routes/main.py b/routes/main.py index d13d07e..2f426f8 100644 --- a/routes/main.py +++ b/routes/main.py @@ -437,7 +437,7 @@ def init_routes(main_bp): query = query.filter(Event.event_type == event_type) if user_id: query = query.filter(Event.user_id == user_id) - if date_range: + if date_range and date_range != 'all': cutoff_date = datetime.utcnow() - timedelta(days=int(date_range[:-1])) query = query.filter(Event.timestamp >= cutoff_date) diff --git a/templates/settings/tabs/events.html b/templates/settings/tabs/events.html index d18a71c..ac8c1c8 100644 --- a/templates/settings/tabs/events.html +++ b/templates/settings/tabs/events.html @@ -178,7 +178,7 @@