remove some debug info and add get_type
This commit is contained in:
parent
552c94fa71
commit
5d56a89a99
|
@ -15,13 +15,13 @@ def get_wikipage(keywords):
|
|||
PARAMS['search'] = key
|
||||
R = S.get(url=URL, params=PARAMS)
|
||||
DATA = R.json()
|
||||
print(DATA)
|
||||
print(DATA[3][0])
|
||||
#print(DATA)
|
||||
#print(DATA[3][0])
|
||||
return DATA[3][0]
|
||||
|
||||
#获取commit的关键词,如ext4
|
||||
def get_commit_kerywords(abbr):
|
||||
print(abbr.split())
|
||||
#print(abbr.split())
|
||||
for abb in abbr.split():
|
||||
if abb.endswith(":"):
|
||||
keywords = abb.replace(':','')
|
||||
|
@ -30,12 +30,11 @@ def get_commit_kerywords(abbr):
|
|||
|
||||
#获取commit的类型,如
|
||||
def get_commit_type(body):
|
||||
for line in body:
|
||||
for line in body.split("\n"):
|
||||
#print(line)
|
||||
if line.startswith("category"):
|
||||
return line.replace('category:','')
|
||||
else:
|
||||
return ""
|
||||
return ""
|
||||
|
||||
def get_CVE_code(body):
|
||||
return ""
|
|
@ -12,10 +12,6 @@ def mkdir(path):
|
|||
# 判断结果
|
||||
if not isExists:
|
||||
os.makedirs(path)
|
||||
print (path + " 创建成功")
|
||||
else:
|
||||
# 如果目录存在则不创建,并提示目录已存在
|
||||
print (path + " 目录已存在")
|
||||
|
||||
#初始化kernel log summary的markdown文件
|
||||
def initmd(version1,version2,source):
|
||||
|
|
Loading…
Reference in New Issue