aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-10 07:39:06 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-02-10 07:39:06 +0100
commit31cabee3489feaca2ceaf223f93cd33a85ee6659 (patch)
treec2024c5aa05f4ef9dbd7ce6259d4094cee412e94 /src/web/views/views.py
parentFixed an error when redirecting to home from the 'duplicates' page. (diff)
downloadnewspipe-31cabee3489feaca2ceaf223f93cd33a85ee6659.tar.gz
newspipe-31cabee3489feaca2ceaf223f93cd33a85ee6659.tar.bz2
newspipe-31cabee3489feaca2ceaf223f93cd33a85ee6659.zip
The OPML generation now includes the category of the feeds.
Diffstat (limited to 'src/web/views/views.py')
-rw-r--r--src/web/views/views.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/web/views/views.py b/src/web/views/views.py
index 84f2be5f..a4631d7d 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -412,8 +412,11 @@ def export_opml():
Export all feeds to OPML.
"""
user = UserController(g.user.id).get(id=g.user.id)
+ categories = {cat.id: cat.dump()
+ for cat in CategoryController(g.user.id).read()}
response = make_response(render_template('opml.xml', user=user,
- now=datetime.datetime.now()))
+ categories=categories,
+ now=datetime.datetime.now()))
response.headers['Content-Type'] = 'application/xml'
response.headers['Content-Disposition'] = 'attachment; filename=feeds.opml'
return response
bgstack15