aboutsummaryrefslogtreecommitdiffstats
path: root/web/main.py
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2014-08-03 21:19:55 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2014-08-03 21:19:55 -0400
commit6283b6582960544dc02e438e739775e3239b802c (patch)
tree70538744d32a55757e0a5c7c6d581fc404ab6878 /web/main.py
parent102a573a7e6fd711da874c76f74b47df37ff124e (diff)
downloadocr-layer-curation-6283b6582960544dc02e438e739775e3239b802c.tar.gz
better 2-way highlighting, still not perfect
Diffstat (limited to 'web/main.py')
-rw-r--r--web/main.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/web/main.py b/web/main.py
index b5174d8..a6826c1 100644
--- a/web/main.py
+++ b/web/main.py
@@ -9,9 +9,10 @@ import io
class MainHandler(RequestHandler):
def get(self, page_number):
- orig_coords, orig_words, corr_coords_index, corr_words = utils.gen_html(self.settings["book"], page_number)
- self.render("index.html", page_number=page_number,
- orig_coords=orig_coords, orig_words=orig_words, corr_words=corr_words, corr_coords_index=corr_coords_index)
+ orig_coords, orig_words, corr_words, align = \
+ utils.gen_html(self.settings["book"], page_number)
+ self.render("index.html", page_number=page_number, orig_coords=orig_coords,
+ orig_words=orig_words, corr_words=corr_words, align=align)
class ImageHandler(RequestHandler):