Skip to content

Commit

Permalink
Fix categories labels on schedule changes page
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Dec 3, 2024
1 parent 806ff87 commit faf3c70
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uber/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,9 @@ def guidebook_edit_link(self):

@property
def guidebook_data(self):
category_labels = [cat for cat in self.categories_labels if 'Other' not in cat] + [self.categories_text]
category_labels = [cat for cat in self.categories_labels if 'Other' not in cat]
if self.categories_text:
category_labels.append([self.categories_text])
return {
'guidebook_name': self.name,
'guidebook_subtitle': ', '.join(category_labels[:5]),
Expand Down

0 comments on commit faf3c70

Please sign in to comment.