diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-12 19:02:29 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-12 19:02:29 +0200 |
commit | d8b68678806a4da1621c0f03f6bdd21303a25ecf (patch) | |
tree | dd7150f9b1829b5a5999d687e68b24ae08abb51f /pyaggr3g470r | |
parent | Trying the export to HTML option on Heroku. (diff) | |
download | newspipe-d8b68678806a4da1621c0f03f6bdd21303a25ecf.tar.gz newspipe-d8b68678806a4da1621c0f03f6bdd21303a25ecf.tar.bz2 newspipe-d8b68678806a4da1621c0f03f6bdd21303a25ecf.zip |
Trying the export to HTML option on Heroku (2).
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/views.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 81462100..3cd8afc5 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -394,14 +394,11 @@ 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) except: flash("Error when exporting articles.", 'danger') return redirect(url_for('management')) - """ response = make_response(archive_file) response.headers['Content-Type'] = 'application/x-compressed' response.headers['Content-Disposition'] = 'attachment; filename='+archive_file_name |