Skip to content

Commit

Permalink
Fix 500 error for dealer guidebook data
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsuta committed Dec 3, 2024
1 parent f0b6655 commit fd11968
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions uber/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,10 +483,10 @@ def guidebook_edit_link(self):
def guidebook_data(self):
category_labels = [cat for cat in self.categories_labels if 'Other' not in cat]
if self.categories_text:
category_labels.append([self.categories_text])
category_labels.append(self.categories_text)
return {
'guidebook_name': self.name,
'guidebook_subtitle': ', '.join(category_labels[:5]),
'guidebook_subtitle': ', '.join(category_labels),
'guidebook_desc': self.description,
'guidebook_location': '',
'guidebook_header': '',
Expand Down

0 comments on commit fd11968

Please sign in to comment.