Skip to content

Commit 1e7b906

Browse files
committed
Fixed another place where updated logic is needed to get the current
meeting when we have multiple future meetings. Fixes issue ietf-tools#2371. - Legacy-Id: 14120
1 parent bc054b8 commit 1e7b906

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/meeting/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def get_reopen_time(self):
141141

142142
@classmethod
143143
def get_current_meeting(cls, type="ietf"):
144-
return cls.objects.all().filter(type=type).order_by('-date').first()
144+
return cls.objects.filter(type=type, date__gte=datetime.datetime.today()-datetime.timedelta(days=7) ).order_by('date').first()
145145

146146
@classmethod
147147
def get_first_cut_off(cls):

0 commit comments

Comments
 (0)