Skip to content

Commit

Permalink
[assets] fix get_assets_and_tasks when episode_id is all or main
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanBldy committed Jan 14, 2025
1 parent bb42c70 commit b488cc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zou/app/services/assets_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,10 @@ def get_assets_and_tasks(criterions={}, page=1, with_episode_ids=False):
episode_links_query = episode_links_query.filter(
Episode.project_id == criterions["project_id"]
)
if "episode_id" in criterions:
if "episode_id" in criterions and criterions["episode_id"] not in [
"main",
"all",
]:
episode_links_query = episode_links_query.filter(
EntityLink.entity_in_id == criterions["episode_id"]
)
Expand Down

0 comments on commit b488cc7

Please sign in to comment.