Skip to content

Commit f739639

Browse files
authored
Update backend/example/views.py
1 parent 381233b commit f739639

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/example/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def get_events(request):
4545
search_term = request.GET.get('search', '').strip() # Get search term
4646

4747
# Get date filtering parameter - by default hide past events
48-
include_past = request.GET.get('include_past', 'false').lower() in ('true', '1', 'yes')
48+
include_past = request.GET.get('include_past', 'false') in ('true')
4949

5050
# Limit the maximum number of events per request
5151
limit = min(limit, 100) # Max 100 events per request

0 commit comments

Comments
 (0)