Skip to content

Commit ee33b60

Browse files
committed
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
1 parent b12bb3c commit ee33b60

2 files changed

Lines changed: 30 additions & 1 deletion

File tree

changelog

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,31 @@
1+
ietfdb (6.68.0) ietf; urgency=medium
2+
3+
4+
* Added a guard in document replacement following methods against infinite
5+
recursion on circular relationships.
6+
7+
* Enhanced doc event notification emails with who and when. Fixes issue
8+
#2428.
9+
10+
* Added a data migration to create yang catalog links for yang documents
11+
published before the yang catalog link feature was introduced in the
12+
datatracker.
13+
14+
* Fixed an ungarded object attribute access.
15+
16+
* Updated the API notes page.
17+
18+
* Limited the iesg ballot position API to ADs (excluding secretariat).
19+
20+
* Modified the run_yang_model_checks management command to accept
21+
document aliases on the command line.
22+
23+
* Reverted an inadvertently included patch version.
24+
25+
* Fixed some reStructuredText issues in the changelog
26+
27+
-- Henrik Levkowetz <henrik@levkowetz.com> 22 Dec 2017 11:29:14 -0800
28+
129
ietfdb (6.68.0) ietf; urgency=medium
230

331
**Ballot position API. Support for API keys.**

ietf/stats/management/commands/fetch_meeting_attendance.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Copyright 2016 IETF Trust
22

3+
import datetime
34
import syslog
45

56
from django.core.management.base import BaseCommand, CommandError
@@ -30,7 +31,7 @@ def handle(self, *args, **options):
3031
elif options['all']:
3132
meetings = Meeting.objects.filter(type="ietf").order_by("date")
3233
elif options['latest']:
33-
meetings = Meeting.objects.filter(type="ietf").order_by("-date")[:options['latest']]
34+
meetings = Meeting.objects.filter(type="ietf", date__lte=datetime.datetime.today()).order_by("-date")[:options['latest']]
3435
else:
3536
raise CommandError("Please use one of --meeting, --all or --latest")
3637

0 commit comments

Comments
 (0)