Skip to content

Commit

Permalink
refactor:black格式化
Browse files Browse the repository at this point in the history
  • Loading branch information
nieen committed Oct 22, 2024
1 parent 2a456f4 commit 73f714c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sql/utils/workflow_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,10 +601,14 @@ def get_review_info(self) -> ReviewInfo:
# 获取指定权限组名称
group_in_db = Group.objects.get(id=g)
# 获取资源组内关联指定权限组的用户
current_audit_users = auth_group_users([group_in_db.name], self.resource_group_id)
current_audit_user_ids = current_audit_users.values_list('id', flat=True)
current_audit_users = auth_group_users(
[group_in_db.name], self.resource_group_id
)
current_audit_user_ids = current_audit_users.values_list("id", flat=True)
# 过滤Group对象的user_set,只保留当前审核用户
group_filtered_user_set = group_in_db.user_set.filter(id__in=current_audit_user_ids)
group_filtered_user_set = group_in_db.user_set.filter(
id__in=current_audit_user_ids
)
if self.audit.current_status != WorkflowStatus.WAITING:
# 总体状态不是待审核, 不设置详细的属性
review_nodes.append(
Expand Down

0 comments on commit 73f714c

Please sign in to comment.