diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2014-02-28 00:37:05 -0500 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2014-02-28 00:37:05 -0500 |
| commit | ebd5024ec7e47ac85a41bf4d1ff98df15eb8cac3 (patch) | |
| tree | e535577f95da9c174f3c09f7363a8be5ad12c32c /web/utils.py | |
| parent | 46ad59afebba9d43dd8b736b2e6844c2a77c9249 (diff) | |
| download | ocr-layer-curation-ebd5024ec7e47ac85a41bf4d1ff98df15eb8cac3.tar.gz | |
add a handler for images, everything is dynamic!
Diffstat (limited to 'web/utils.py')
| -rw-r--r-- | web/utils.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/web/utils.py b/web/utils.py index 3db0296..8c7a33e 100644 --- a/web/utils.py +++ b/web/utils.py @@ -7,8 +7,7 @@ def gen_html(book, page_number): d = parse_book(book, page=int(page_number), html=True) if d[0]: words, coords = zip(*d[0]) - - return (list(enumerate(coords)), list(enumerate(words))) + return (list(enumerate(coords)), list(enumerate(words))) if __name__ == "__main__": gen_html(*sys.argv[1:3]) |
