Skip to content

Commit

Permalink
ruff
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofia Sazonova committed Feb 12, 2025
1 parent acf5755 commit f6eecc0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ def get_affected_environments(uri, rule=None) -> List[Environment]:
return EnvironmentRepository.query_all_active_environments(session)
if rule.level == MetadataFormEnforcementScope.Organization.value:
return OrganizationRepository.query_organization_environments(
session, uri=rule.homeEntity, filter=None
).all()
session, uri=rule.homeEntity, filter=None
).all()
if rule.level == MetadataFormEnforcementScope.Environment.value:
return [EnvironmentRepository.get_environment_by_uri(session, rule.homeEntity)]
return []
Expand Down

0 comments on commit f6eecc0

Please sign in to comment.