Skip to content

Commit 2f3579f

Browse files
committed
Feature: Add logging system
format the code
1 parent 9e8bfea commit 2f3579f

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ def printSpliter(length=25):
6363
help='add --directory or -D specify the save path of pdf file'
6464
' For example, -D ./output. Default path is ./document/pub'
6565
'you can overrider the default path in config.py',
66-
6766
default=None)
6867

6968
parser.add_argument("-p", "--pmid", type=str, metavar='',
@@ -130,7 +129,6 @@ def printSpliter(length=25):
130129

131130
medLog.info(f"Current commandline parameters: {args.__dict__}\n")
132131
medLog.info(
133-
134132
f"当前使用的命令行参数 搜索关键词: \"{args.keyword}\", 文献信息检索数量: {args.pagenum}, 年份:{args.year}, 文献下载数量: {args.downloadnum}, 下载文献的存储目录: {projConfig.pdfSavePath}\n")
135133
try:
136134
result_num = WebHelper.GetSearchResultNum(keyword=args.keyword, year=args.year)

utils/WebHelper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def parseParamDcit(cls, **kwargs):
2626
这个函数接受任意个数的参数作为字典使用,但是在使用的时候需要显式指定参数名称
2727
"""
2828

29-
3029
search_keywords_dict = {}
3130
if 'keyword' in kwargs and kwargs['keyword']:
3231
search_keywords_dict['term'] = kwargs.get('keyword')
@@ -39,7 +38,6 @@ def parseParamDcit(cls, **kwargs):
3938

4039
return search_keywords_dict
4140

42-
4341
@classmethod
4442
def encodeParam(cls, param: dict) -> str:
4543
return urllib.parse.urlencode(param)

0 commit comments

Comments
 (0)