gitlink仓库内部传递不用校验

This commit is contained in:
“xxq250” 2022-08-09 10:21:02 +08:00
parent d5f54f0e64
commit d3f71ad063
1 changed files with 3 additions and 3 deletions

View File

@ -83,9 +83,9 @@ class Project(Controller):
if item.code_china_address:
if not gitcode.check_gitcode_address(item.code_china_address):
raise ErrorTemplate.ARGUMENT_ERROR("CodeChina仓库")
if item.gitlink_address:
if not gitlink.check_gitlink_address(item.gitlink_address):
raise ErrorTemplate.ARGUMENT_ERROR("Gitlink仓库")
# if item.gitlink_address:
# if not gitlink.check_gitlink_address(item.gitlink_address):
# raise ErrorTemplate.ARGUMENT_ERROR("Gitlink仓库")
service = ProjectService()
resp = await service.insert_project(item)