Skip to content

Commit

Permalink
排查错误
Browse files Browse the repository at this point in the history
  • Loading branch information
woshiyanghai committed Jul 18, 2024
1 parent 15bbc52 commit c34afc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sql/sql_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,8 @@ def execute(request):
return render(request, "error.html", context)
sys_config = SysConfig()
if not request.user.is_superuser and on_query_low_peak_time_ddl(workflow_id) is False:
start = sys_config.get("query_low_peak_start", "")
end = sys_config.get("query_low_peak_end", "")
start = sys_config.get("query_low_peak_start", 0)
end = sys_config.get("query_low_peak_end", 0)
context = {
"errMsg": "管理员设置了业务低峰期时间范围:每天%s:00至%s,你只能在业务低峰时间范围执行DDL工单操作!" % (start, end)
}
Expand Down

0 comments on commit c34afc4

Please sign in to comment.