From 1acf4cc1575375c61f1dae39be36f22f9a505da2 Mon Sep 17 00:00:00 2001 From: ange Date: Wed, 13 Jun 2018 20:06:45 +0200 Subject: [PATCH] changes in annotations again --- app/templates/results_annot.html | 2 +- app/views.py | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/templates/results_annot.html b/app/templates/results_annot.html index 9988166..9813985 100644 --- a/app/templates/results_annot.html +++ b/app/templates/results_annot.html @@ -11,7 +11,7 @@


-Get as PDF      All annotations

+ All annotations

Annotations/ Extracts with:  {{name}}

diff --git a/app/views.py b/app/views.py index 915244d..4cd6232 100755 --- a/app/views.py +++ b/app/views.py @@ -123,15 +123,15 @@ def annotations_pdf(): html = render_template(('annotations.html'), annot=annot, light=light) return render_pdf(HTML(string=html)) -@app.route('/myannotations.pdf') -def myannotations_pdf(): - books = db.session.query(Book).all() - name=str(request.args.get('query')) - annot = get_annotations() - res = get_annot_results(annot,name) - # Make a PDF straight from HTML in a string. - html = render_template('results_annot.html', name=name, annot=annot, res=res, books=books) - return render_pdf(HTML(string=html)) +# @app.route('/myannotations.pdf') +# def myannotations_pdf(): +# books = db.session.query(Book).all() +# name=str(request.args.get('query')) +# annot = get_annotations() +# res = get_annot_results(annot,name) +# # Make a PDF straight from HTML in a string. +# html = render_template('results_annot.html', name=name, annot=annot, res=res, books=books) +# return render_pdf(HTML(string=html)) @app.route('/viewpdf/')