Skip to content

Commit

Permalink
修复测试兼容性
Browse files Browse the repository at this point in the history
  • Loading branch information
hhyo committed Aug 24, 2024
1 parent f7bb09d commit 92bf5e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sql/utils/workflow_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def is_auto_reject(self):
auto_review_wrong = self.sys_config.get(
"auto_review_wrong", ""
) # 1表示出现警告就驳回,2和空表示出现错误才驳回
review_content = self.workflow.sqlworkflowcontent.review_content
review_content = self.workflow.sqlworkflowcontent.review_content or '[]'
warning_count, error_count = 0, 0
for r in json.loads(review_content):
err_level = ReviewResult(**r).errlevel
Expand All @@ -218,6 +218,7 @@ def is_auto_reject(self):
]
):
return True
return False

def is_auto_review(self) -> bool:
if self.is_auto_reject():
Expand Down

0 comments on commit 92bf5e7

Please sign in to comment.