Skip to content

Commit 6d5f604

Browse files
committed
Tweaked the document list iCalendar links to not show for presentations on days in the past.
- Legacy-Id: 14908
1 parent f48669a commit 6d5f604

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/doc/utils_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def fill_in_document_table_attributes(docs):
4343
seen.add(e.doc_id)
4444

4545
# on agenda in upcoming meetings
46-
presentations = SessionPresentation.objects.filter(session__meeting__date__gte=datetime.date.today()-datetime.timedelta(days=15)).select_related('session', 'document')
46+
presentations = SessionPresentation.objects.filter(session__timeslotassignments__timeslot__time__gte=datetime.datetime.today()).distinct().select_related('session', 'document')
4747
session_list = [ (p.document, p.session) for p in presentations ]
4848
sessions = dict( (d, []) for (d, s) in session_list )
4949
for (d, s) in session_list:

0 commit comments

Comments
 (0)