Skip to content

Commit

Permalink
black
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoQuote committed Nov 17, 2023
1 parent f32d82a commit b1a5524
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 2 additions & 4 deletions sql/utils/workflow_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,11 +584,9 @@ def review_info(workflow_id, workflow_type):
current_audit_auth_group = None
else:
try:
auth_group_in_db = Group.objects.get(
id=audit_info.current_audit
)
auth_group_in_db = Group.objects.get(id=audit_info.current_audit)
users = auth_group_in_db.user_set.all()
users_display = ','.join(x.username for x in users) or "组内无用户, 请联系管理员"
users_display = ",".join(x.username for x in users) or "组内无用户, 请联系管理员"
current_audit_auth_group = f"{auth_group_in_db.name}: {users_display}"
except Exception:
current_audit_auth_group = audit_info.current_audit
Expand Down
4 changes: 3 additions & 1 deletion sql/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,9 @@ def detail(request, workflow_id):
)
# 等待审批的展示当前全部审批人
if workflow_detail.status == "workflow_manreviewing":
_, current_audit_users_display = Audit.review_info(workflow_id,WorkflowType.SQL_REVIEW)
_, current_audit_users_display = Audit.review_info(
workflow_id, WorkflowType.SQL_REVIEW
)
last_operation_info += f",当前审批节点:{current_audit_users_display}"
except Exception as e:
logger.debug(f"无审核日志记录,错误信息{e}")
Expand Down

0 comments on commit b1a5524

Please sign in to comment.