Tweaked the query filter for 'latest' meetings in the fetch_meeting_attendance management command to deal with future meetings beyond the current meeting.

- Legacy-Id: 14458
This commit is contained in:
Henrik Levkowetz 2017-12-22 19:56:55 +00:00
parent b12bb3ca3c
commit ee33b6026b
2 changed files with 30 additions and 1 deletions

View file

@ -1,3 +1,31 @@
ietfdb (6.68.0) ietf; urgency=medium
* Added a guard in document replacement following methods against infinite
recursion on circular relationships.
* Enhanced doc event notification emails with who and when. Fixes issue
#2428.
* Added a data migration to create yang catalog links for yang documents
published before the yang catalog link feature was introduced in the
datatracker.
* Fixed an ungarded object attribute access.
* Updated the API notes page.
* Limited the iesg ballot position API to ADs (excluding secretariat).
* Modified the run_yang_model_checks management command to accept
document aliases on the command line.
* Reverted an inadvertently included patch version.
* Fixed some reStructuredText issues in the changelog
-- Henrik Levkowetz <henrik@levkowetz.com> 22 Dec 2017 11:29:14 -0800
ietfdb (6.68.0) ietf; urgency=medium
**Ballot position API. Support for API keys.**

View file

@ -1,5 +1,6 @@
# Copyright 2016 IETF Trust
import datetime
import syslog
from django.core.management.base import BaseCommand, CommandError
@ -30,7 +31,7 @@ class Command(BaseCommand):
elif options['all']:
meetings = Meeting.objects.filter(type="ietf").order_by("date")
elif options['latest']:
meetings = Meeting.objects.filter(type="ietf").order_by("-date")[:options['latest']]
meetings = Meeting.objects.filter(type="ietf", date__lte=datetime.datetime.today()).order_by("-date")[:options['latest']]
else:
raise CommandError("Please use one of --meeting, --all or --latest")