diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2014-02-27 12:03:28 -0500 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2014-02-27 12:03:28 -0500 |
| commit | 6d386d892ffde28d051cf5ba066391c8834dc3c6 (patch) | |
| tree | 20fda9cca00f363a0cc44b141fbf9646c34044d9 /web/utils.py | |
| parent | ef764c648172a4ebd011bce43ff56bc9533659ca (diff) | |
| download | ocr-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.py | 2 |
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): |
