From ee33b6026be9510c5a94da8a6a054d18cf64d932 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 22 Dec 2017 19:56:55 +0000 Subject: [PATCH] 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 --- changelog | 28 +++++++++++++++++++ .../commands/fetch_meeting_attendance.py | 3 +- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/changelog b/changelog index 663da53b7..b577cf7ff 100644 --- a/changelog +++ b/changelog @@ -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 22 Dec 2017 11:29:14 -0800 + ietfdb (6.68.0) ietf; urgency=medium **Ballot position API. Support for API keys.** diff --git a/ietf/stats/management/commands/fetch_meeting_attendance.py b/ietf/stats/management/commands/fetch_meeting_attendance.py index 52b286c51..bc511d34f 100755 --- a/ietf/stats/management/commands/fetch_meeting_attendance.py +++ b/ietf/stats/management/commands/fetch_meeting_attendance.py @@ -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")