Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
openEuler-Advisor
提交
a570b9f0
O
openEuler-Advisor
项目概览
openeuler
/
openEuler-Advisor
通知
43
Star
4
Fork
4
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
openEuler-Advisor
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a570b9f0
编写于
8月 31, 2020
作者:
C
chenyanpan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
move auth.py to api directory
上级
1cf8fca0
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
4 addition
and
3 deletion
+4
-3
patch-tracking/patch_tracking/api/auth.py
patch-tracking/patch_tracking/api/auth.py
+0
-0
patch-tracking/patch_tracking/api/tracking.py
patch-tracking/patch_tracking/api/tracking.py
+4
-3
未找到文件。
patch-tracking/patch_tracking/
util
/auth.py
→
patch-tracking/patch_tracking/
api
/auth.py
浏览文件 @
a570b9f0
文件已移动
patch-tracking/patch_tracking/api/tracking.py
浏览文件 @
a570b9f0
...
...
@@ -7,7 +7,7 @@ from sqlalchemy.exc import SQLAlchemyError
from
patch_tracking.database.models
import
Tracking
from
patch_tracking.api.business
import
create_tracking
,
update_tracking
,
delete_tracking
from
patch_tracking.api.constant
import
ResponseCode
from
patch_tracking.
util
.auth
import
auth
from
patch_tracking.
api
.auth
import
auth
logger
=
logging
.
getLogger
(
__name__
)
tracking
=
Blueprint
(
'tracking'
,
__name__
)
...
...
@@ -36,8 +36,9 @@ def delete():
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录