Fixed a bug in a meeting number comparison.

- Legacy-Id: 13938
This commit is contained in:
Henrik Levkowetz 2017-07-19 11:42:26 +00:00
parent 337efbbe3f
commit 3b4992d2b7

View file

@ -422,7 +422,7 @@ def agenda(request, num=None, name=None, base=None, ext=None, owner=None, utc=""
# So that we're not producing misleading pages...
meeting = meetings.first()
if not meetings.exists() or (meeting.number.isdigit() and meeting.number <= 64 and not meeting.agenda.assignments.exists()):
if not meetings.exists() or (meeting.number.isdigit() and int(meeting.number) <= 64 and not meeting.agenda.assignments.exists()):
if ext == '.html':
return HttpResponseRedirect( 'https://www.ietf.org/proceedings/%s' % num )
else: