提交 d6435df9 编写于 作者: C chenyanpanHW 提交者: Gitee

!7 fix pylint

Merge pull request !7 from ZhangYifan/fix-pylint
......@@ -30,12 +30,14 @@ def delete():
try:
if "branch" in keys:
if Tracking.query.filter(Tracking.repo == input_params['repo'], Tracking.branch == input_params['branch']).first():
if Tracking.query.filter(Tracking.repo == input_params['repo'],
Tracking.branch == input_params['branch']).first():
delete_tracking(input_params['repo'], input_params['branch'])
logger.info('Delete tracking repo: %s, branch: %s', input_params['repo'], input_params['branch'])
return ResponseCode.ret_message(code=ResponseCode.SUCCESS)
else:
logger.info('Delete tracking repo: %s, branch: %s not found.', input_params['repo'], input_params['branch'])
logger.info('Delete tracking repo: %s, branch: %s not found.', input_params['repo'],
input_params['branch'])
return ResponseCode.ret_message(code=ResponseCode.DELETE_DB_NOT_FOUND)
else:
if Tracking.query.filter(Tracking.repo == input_params['repo']).first():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册