-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: sort categories in recommended app service response #4498
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
👍
W. Logan Clark
…On Sun, May 19, 2024 at 12:59 AM Yeuoly ***@***.***> wrote:
***@***.**** approved this pull request.
LGTM
—
Reply to this email directly, view it on GitHub
<#4498 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BH6TQ2ZKNHPZPCQ5N3EBS4LZDBLW7AVCNFSM6AAAAABH5RZ2JGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDANRVGAYTMOJUHE>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
@@ -95,7 +95,7 @@ def _fetch_recommended_apps_from_db(cls, language: str) -> dict: | |||
|
|||
categories.add(recommended_app.category) # add category to categories | |||
|
|||
return {'recommended_apps': recommended_apps_result, 'categories': list(categories)} | |||
return {'recommended_apps': recommended_apps_result, 'categories': sorted(list(categories))} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
list(categories) duplicate removal, and sorted by it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. SGTM.
No description provided.