Alphabetize filters before sending to jinja.

This commit is contained in:
voussoir 2022-09-11 09:44:52 -07:00
parent 176e5fa1e2
commit d2f940b286
No known key found for this signature in database
GPG key ID: 5F7554F8C26DACCB

View file

@ -111,6 +111,7 @@ def get_feed_settings(feed_id):
feed_filters = list(feed.get_filters()) feed_filters = list(feed.get_filters())
available_filters = set(common.bringdb.get_filters()) available_filters = set(common.bringdb.get_filters())
available_filters.difference_update(feed_filters) available_filters.difference_update(feed_filters)
available_filters = sorted(available_filters, key=lambda filt:filt.name.lower())
return common.render_template( return common.render_template(
request, request,
'feed_settings.html', 'feed_settings.html',