Skip to content

Commit

Permalink
Fix sorting of grouped templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathansick committed Sep 27, 2024
1 parent 16b71a6 commit 700329a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/templatebot/services/templaterepo.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,8 @@ async def _generate_menu_options(

# Convert into a list of SlackOptionGroupObject
option_groups: list[SlackOptionGroupObject] = []
for group in grouped_templates:
for group_name in group_names:
group = grouped_templates[group_name]
options = []
for template in grouped_templates[group]:
option = SlackOptionObject(
Expand Down

0 comments on commit 700329a

Please sign in to comment.