diff options
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 9 |
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 |