diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-02-09 22:09:29 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-02-09 22:09:29 +0100 |
commit | 2b835245140923e36f9d3ecba06442137ba2ae43 (patch) | |
tree | 7b446a52c4ba754a354b57620ff0d3c3fddf48f9 /pyaggr3g470r/views.py | |
parent | Updated initialization script. (diff) | |
download | newspipe-2b835245140923e36f9d3ecba06442137ba2ae43.tar.gz newspipe-2b835245140923e36f9d3ecba06442137ba2ae43.tar.bz2 newspipe-2b835245140923e36f9d3ecba06442137ba2ae43.zip |
Improved OPML import.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 03ade91c..52ca3365 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -382,10 +382,10 @@ def management(): opml_path = os.path.join("./pyaggr3g470r/var/", data.filename) data.save(opml_path) try: - utils.import_opml(g.user.email, opml_path) - flash("New feeds imported", "success") + nb = utils.import_opml(g.user.email, opml_path) + flash(str(nb) + " feeds imported.", "success") except Exception as e: - flash("Impossible to import the new feeds."+str(e), "danger") + flash("Impossible to import the new feeds.", "danger") form = AddFeedForm() |