From 88c67054b61ef60b6316d4f4e302fad27b07c83d Mon Sep 17 00:00:00 2001 From: David Taylor Date: Wed, 22 Apr 2015 15:31:50 +0100 Subject: [PATCH] Back to 12 month query --- RIGS/ical.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RIGS/ical.py b/RIGS/ical.py index 15dc73af..02862dfb 100644 --- a/RIGS/ical.py +++ b/RIGS/ical.py @@ -17,7 +17,7 @@ class CalendarICS(ICalFeed): def items(self): #include events from up to 3 months ago - start = datetime.datetime.now() - datetime.timedelta(days=31*3) + start = datetime.datetime.now() - datetime.timedelta(days=365) filter = Q(start_date__gte=start) return models.Event.objects.filter(filter).order_by('-start_date').select_related('person', 'organisation', 'venue', 'mic')