Skip to content

Commit 8d3217a

Browse files
committed
Added sorting of agenda filter keywords to make page rendering stable.
- Legacy-Id: 18737
1 parent 2a41a48 commit 8d3217a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/meeting/helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ def tag_assignments_with_filter_keywords(assignments):
248248
for a in assignments:
249249
a.filter_keywords = {a.timeslot.type.slug.lower()}
250250
a.filter_keywords.update(filter_keywords_for_session(a.session))
251+
a.filter_keywords = sorted(list(a.filter_keywords))
251252

252253
def filter_keywords_for_session(session):
253254
keywords = {session.type.slug.lower()}
@@ -262,7 +263,7 @@ def filter_keywords_for_session(session):
262263
office_hours_match = re.match(r'^ *\w+(?: +\w+)* +office hours *$', session.name, re.IGNORECASE)
263264
if office_hours_match is not None:
264265
keywords.update(['officehours', session.name.lower().replace(' ', '')])
265-
return keywords
266+
return sorted(list(keywords))
266267

267268
def read_session_file(type, num, doc):
268269
# XXXX FIXME: the path fragment in the code below should be moved to

0 commit comments

Comments
 (0)