aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-28 15:24:18 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-11-28 15:24:18 +0100
commited06b9a5cca186146548472c8f88f8dd2b63eee1 (patch)
tree18411300b06f4914e99ea1ffb2d6242e9984a285 /pyaggr3g470r/views.py
parentSpeed improvements: combinations generates less pair than product... (diff)
downloadnewspipe-ed06b9a5cca186146548472c8f88f8dd2b63eee1.tar.gz
newspipe-ed06b9a5cca186146548472c8f88f8dd2b63eee1.tar.bz2
newspipe-ed06b9a5cca186146548472c8f88f8dd2b63eee1.zip
Added duplicates.html template.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index a19b67dd..c9acec2d 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -477,10 +477,15 @@ def inactives():
return render_template('inactives.html', inactives=inactives, nb_days=nb_days)
@app.route('/duplicates/<int:feed_id>', methods=['GET'])
+@login_required
def duplicates(feed_id=None):
+ """
+ Return duplicates article for a feed.
+ """
feed = Feed.query.filter(Feed.user_id == g.user.id, Feed.id == feed_id).first()
- result = compare.compare_documents(feed)
- return render_template('unread.html', duplicates=duplicates)
+ duplicates = []
+ duplicates = compare.compare_documents(feed)
+ return render_template('duplicates.html', duplicates=duplicates)
@app.route('/index_database', methods=['GET'])
@login_required
bgstack15