aboutsummaryrefslogtreecommitdiffstats
path: root/web/utils.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2014-02-28 00:37:05 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2014-02-28 00:37:05 -0500
commitebd5024ec7e47ac85a41bf4d1ff98df15eb8cac3 (patch)
treee535577f95da9c174f3c09f7363a8be5ad12c32c /web/utils.py
parent46ad59afebba9d43dd8b736b2e6844c2a77c9249 (diff)
downloadocr-layer-curation-ebd5024ec7e47ac85a41bf4d1ff98df15eb8cac3.tar.gz
add a handler for images, everything is dynamic!
Diffstat (limited to 'web/utils.py')
-rw-r--r--web/utils.py3
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])