aboutsummaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/server.py9
-rw-r--r--web/templates/index.html1
2 files changed, 5 insertions, 5 deletions
diff --git a/web/server.py b/web/server.py
index 1e67ad4..7d48e6f 100644
--- a/web/server.py
+++ b/web/server.py
@@ -9,10 +9,11 @@ import io
class MainHandler(RequestHandler):
def get(self, page_number):
- orig_coords, orig_words, corr_words, align = \
- 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)
+ orig_coords, orig_words, corr_words = \
+ gen_html(self.settings["book"], int(page_number))
+ self.render("index.html", page_number=page_number,
+ orig_coords=orig_coords,
+ orig_words=orig_words, corr_words=corr_words._elem)
class ImageHandler(RequestHandler):
diff --git a/web/templates/index.html b/web/templates/index.html
index 338f04b..26822c6 100644
--- a/web/templates/index.html
+++ b/web/templates/index.html
@@ -7,7 +7,6 @@
<map name="wordmap">
{% for i, coord in enumerate(orig_coords) %}
<area href="#" shape="rect" coords="{{coord}}" data-orig="{{i}}" />
- {# data-corr="{{",".join(map(str,corr_coords_index[i]))}}" #}
{% end %}
</map>