aboutsummaryrefslogtreecommitdiffstats
path: root/web/utils.py
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2014-02-27 12:03:28 -0500
committerThibaut Horel <thibaut.horel@gmail.com>2014-02-27 12:03:28 -0500
commit6d386d892ffde28d051cf5ba066391c8834dc3c6 (patch)
tree20fda9cca00f363a0cc44b141fbf9646c34044d9 /web/utils.py
parentef764c648172a4ebd011bce43ff56bc9533659ca (diff)
downloadocr-layer-curation-6d386d892ffde28d051cf5ba066391c8834dc3c6.tar.gz
Simplify parse_book a bit, also making it more natural to use
Diffstat (limited to 'web/utils.py')
-rw-r--r--web/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/utils.py b/web/utils.py
index 583cd1c..5cc53cf 100644
--- a/web/utils.py
+++ b/web/utils.py
@@ -5,7 +5,7 @@ import sys
def gen_html(book, page_number):
book = "../Villiers_de_L\'Isle-Adam_-_Tribulat_Bonhomet,_1908.djvu"
d = parse_book(book, page=int(page_number), html=True)
- coords, words = d["coords"][0], d["words"][0]
+ words, coords = d[0]
def get_areas():
for i, coord in enumerate(coords):