centered modal
This commit is contained in:
Binary file not shown.
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user