Skip to content

Commit

Permalink
Merge pull request #31 from ynput/bugfix/30-ay-6767_filtering-profile…
Browse files Browse the repository at this point in the history
…s-require-all-aplications

Profiles don't require profile without task types
  • Loading branch information
iLLiCiTiT committed Sep 19, 2024
2 parents 50ba883 + 7e18751 commit 8c804f5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,8 @@ async def get_action_manifests(addon, project_name, variant):
allowed_apps = list(profile["applications"])

if not profile["task_types"]:
if generic_apps is not None:
continue
generic_apps = allowed_apps
if generic_apps is None:
generic_apps = allowed_apps
continue

task_types = set(profile["task_types"]) - used_task_types
Expand All @@ -137,7 +136,7 @@ async def get_action_manifests(addon, project_name, variant):
for task_type in project_entity.task_types
}
generic_task_types = project_task_types - used_task_types
if generic_task_types:
if generic_task_types and generic_apps:
for app_name in generic_apps:
task_types_by_app_name[app_name] |= generic_task_types

Expand Down

0 comments on commit 8c804f5

Please sign in to comment.