Fixed another place where updated logic is needed to get the current
meeting when we have multiple future meetings. Fixes issue #2371. - Legacy-Id: 14120
This commit is contained in:
parent
bc054b8cb2
commit
1e7b906535
|
@ -141,7 +141,7 @@ class Meeting(models.Model):
|
|||
|
||||
@classmethod
|
||||
def get_current_meeting(cls, type="ietf"):
|
||||
return cls.objects.all().filter(type=type).order_by('-date').first()
|
||||
return cls.objects.filter(type=type, date__gte=datetime.datetime.today()-datetime.timedelta(days=7) ).order_by('date').first()
|
||||
|
||||
@classmethod
|
||||
def get_first_cut_off(cls):
|
||||
|
|
Loading…
Reference in a new issue