AgendaFilters pull too many days
Bug #101579 reported by
Andy Altepeter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SilvaNewsNetwork |
Fix Released
|
Medium
|
Andy Altepeter |
Bug Description
In SNN2.0.1, a viewer set to retrieve x days will retrieve all events on x+1 day
that start at midnight.
Here's a patch that should fix this problem:
in AgendaFilter.
lastnight = DateTime(
#we want the range from 12:00 a.m. to 11:59 p.m.
if numdays == 1: #get only one day
enddate = lastnight.
else:
enddate = (lastnight + (numdays-
#XXX old way:
#enddate = lastnight + numdays
Changed in silva-news-network: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
This is fixed, and merged into the Silva trunk when my aaltepet silvanews branch is approved.