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/')