From 700329add28a120c9a5357db9802c23399510013 Mon Sep 17 00:00:00 2001 From: Jonathan Sick Date: Fri, 27 Sep 2024 15:41:57 -0400 Subject: [PATCH] Fix sorting of grouped templates --- src/templatebot/services/templaterepo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/templatebot/services/templaterepo.py b/src/templatebot/services/templaterepo.py index 655615b..dea2477 100644 --- a/src/templatebot/services/templaterepo.py +++ b/src/templatebot/services/templaterepo.py @@ -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(