category ID till 10 updated

This commit is contained in:
rizwanisready
2024-05-09 15:22:53 +05:30
parent e1986ae04e
commit 16517cfbe6

View File

@@ -539,7 +539,7 @@ class EventFilterService:
) & (Q(start_date__lte=today, end_date__gte=today) | Q(start_date__gt=today))
# Ensure the category_id is valid and within the specified range (1-8)
if 1 <= category_id <= 8:
if 1 <= category_id <= 10:
events = Event.objects.filter(
current_and_future_events_query, category_id=category_id
).distinct()