Skip to content

Commit

Permalink
fix bug #4
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-bearabbit committed Feb 20, 2022
1 parent 56d56c3 commit b265152
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 4 deletions.
Binary file removed dist/kbodata-0.1.3.tar.gz
Binary file not shown.
Binary file not shown.
Binary file added dist/kbodata-0.1.4.tar.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion kbodata/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '0.1.3'
__version__ = '0.1.4'

from kbodata.get.schedule import(
get_daily_schedule,
Expand Down
10 changes: 9 additions & 1 deletion kbodata/parser/batter.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def batter_modify(data):
game_info["day"],
game_info["더블헤더"],
)
new_info["name"] = batter["선수명"]
new_info["name"] = change_long_name(batter["선수명"])
new_info["team"] = batter["팀"]
new_info["position"] = change_position(batter["포지션"])
new_info = add_ining(Batter_factor, new_info, batter)
Expand Down Expand Up @@ -142,3 +142,11 @@ def change_record(data):
data = data.replace("二","2")
data = data.replace("三","3")
return data

def change_long_name(name):

full_names = {"페르난데":"페르난데스","해즐베이":"해즐베이커","스몰린스":"스몰린스키","반슬라이":"반슬라이크"}
if name in full_names.keys():
return full_names[name]
else:
return name
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "kbodata"
version = "0.1.3"
version = "0.1.4"
description = "Scraping Korea Baseball Game information"
authors = ["Hyeonji-Ryu <[email protected]>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_kbodata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
import inspect

def test_version():
assert __version__ == '0.1.0'
assert __version__ == '0.1.4'

0 comments on commit b265152

Please sign in to comment.