Skip to content

Commit

Permalink
fix db errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Binh Vu authored and binh-vu committed Jul 6, 2022
1 parent 01a26f4 commit b6a1a02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kgdata/wikidata/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def get_entity_redirection_db(
readonly=read_only,
options=dboptions,
deser_key=partial(str, encoding="utf-8"),
deser_value=bytes.decode,
deser_value=partial(str, encoding="utf-8"),
ser_value=str.encode,
)

Expand Down Expand Up @@ -318,7 +318,7 @@ def get_wp2wd_db(
options=dboptions,
readonly=read_only,
deser_key=partial(str, encoding="utf-8"),
deser_value=bytes.decode,
deser_value=partial(str, encoding="utf-8"),
ser_value=str.encode,
)

Expand Down
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 = "kgdata"
version = "2.3.1"
version = "2.3.2"
description = "Library to process dumps of knowledge graphs (Wikipedia, DBpedia, Wikidata)"
authors = ["Binh Vu <binh@toan2.com>"]
license = "MIT"
Expand Down

0 comments on commit b6a1a02

Please sign in to comment.