Skip to content

Commit

Permalink
Guard against case changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Jul 4, 2023
1 parent 14b4fa6 commit 0a80a10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions funnel/views/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ def home(self) -> ReturnRenderWith:
).all()
# This list will not be ordered, so we have to re-sort
featured_account_sort_key = {
_n: _i for _i, _n in enumerate(app.config['FEATURED_ACCOUNTS'])
_n.lower(): _i for _i, _n in enumerate(app.config['FEATURED_ACCOUNTS'])
}
featured_accounts.sort(key=lambda a: featured_account_sort_key[a.name])
featured_accounts.sort(key=lambda a: featured_account_sort_key[a.name.lower()])

return {
'all_projects': [
Expand Down

0 comments on commit 0a80a10

Please sign in to comment.