From 882581abe066f16f14b7cc54776bb7985f2b34c6 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Sat, 12 Apr 2014 19:10:38 +0200 Subject: Trying the export to HTML option on Heroku (3). --- pyaggr3g470r/views.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pyaggr3g470r/views.py') diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 3cd8afc5..9ce597e6 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -394,8 +394,9 @@ def export_articles(): Export all articles. """ user = User.query.filter(User.id == g.user.id).first() + archive_file, archive_file_name = export.export_html(user) try: - archive_file, archive_file_name = export.export_html(user.feeds) + archive_file, archive_file_name = export.export_html(user) except: flash("Error when exporting articles.", 'danger') return redirect(url_for('management')) -- cgit