Skip to content

Commit

Permalink
Compatible with space kw
Browse files Browse the repository at this point in the history
  • Loading branch information
yindaheng98 committed Jan 3, 2024
1 parent cec2799 commit 6381178
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 40 deletions.
4 changes: 0 additions & 4 deletions .devcontainer/Dockerfile

This file was deleted.

14 changes: 0 additions & 14 deletions .devcontainer/devcontainer.json

This file was deleted.

16 changes: 0 additions & 16 deletions .devcontainer/docker-compose.yml

This file was deleted.

9 changes: 4 additions & 5 deletions dblp_crawler/keyword/arg.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ def parse_args(parser: argparse.ArgumentParser, dest: str = 'keyword'):
for s in args.__getattribute__(dest):
try:
s = eval(s)
if isinstance(s, str):
keywords.add_rule(s)
else:
keywords.add_rule(*s)
except:
keywords.add_rule(s)
pass
if isinstance(s, str):
s = [c for c in s.split(" ") if len(c) > 0]
keywords.add_rule(*s)
return keywords
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='dblp_crawler',
version='2.1.1',
version='2.1.2',
author='yindaheng98',
author_email='[email protected]',
url='https://github.com/yindaheng98/dblp-crawler',
Expand Down

0 comments on commit 6381178

Please sign in to comment.