Skip to content

Commit

Permalink
fix(hot-fix): base name int bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kaldan007 committed Jun 5, 2022
1 parent ed844ee commit c373735
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pedurma/texts.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ def get_base_meta(base_name, pecha_meta):
base_meta = {}
bases = pecha_meta["source_metadata"].get("base", {})
if bases:
base_meta = bases.get(str(base_name), {})
base_meta = bases.get(base_name, {})
if not base_meta:
base_meta = bases.get(int(base_name), {})
return base_meta


Expand Down

0 comments on commit c373735

Please sign in to comment.