Skip to content
Snippets Groups Projects
Unverified Commit 24c15daa authored by KevinHuSh's avatar KevinHuSh Committed by GitHub
Browse files

fix es exception (#298)

### What problem does this PR solve?

Issue link:#295
### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
parent a0a480b7
No related branches found
No related tags found
No related merge requests found
......@@ -135,9 +135,9 @@ def add_positions(d, poss):
d["position_int"] = []
d["top_int"] = []
for pn, left, right, top, bottom in poss:
d["page_num_int"].append(pn + 1)
d["top_int"].append(top)
d["position_int"].append((pn + 1, left, right, top, bottom))
d["page_num_int"].append(int(pn + 1))
d["top_int"].append(int(top))
d["position_int"].append((int(pn + 1), int(left), int(right), int(top), int(bottom)))
def remove_contents_table(sections, eng=False):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment