Skip to content
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

ff-159 Fixed the exception in the API when no entries found. #300

Merged
merged 2 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/unreleased.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

- ff-158 — Improved prompts to produce less tags of better quality.
- ff-159 — Fixed the exception in the API when no entries found.
5 changes: 4 additions & 1 deletion ffun/ffun/api/http_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,10 @@ async def _external_entries( # pylint: disable=R0914

tags_ids = await o_domain.get_tags_ids_for_entries(entries_ids)

whole_tags = set.union(*tags_ids.values())
if tags_ids:
whole_tags = set.union(*tags_ids.values())
else:
whole_tags = set()

tags_mapping = await o_domain.get_tags_by_ids(whole_tags)

Expand Down
Loading