diff options
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index ad0cc914..a19b67dd 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -42,7 +42,7 @@ from sqlalchemy.exc import IntegrityError from werkzeug import generate_password_hash import conf -from pyaggr3g470r import utils, notifications, export +from pyaggr3g470r import utils, notifications, export, compare from pyaggr3g470r import app, db, allowed_file, babel from pyaggr3g470r.models import User, Feed, Article, Role from pyaggr3g470r.decorators import feed_access_required @@ -476,6 +476,12 @@ def inactives(): inactives.append((feed, elapsed)) return render_template('inactives.html', inactives=inactives, nb_days=nb_days) +@app.route('/duplicates/<int:feed_id>', methods=['GET']) +def duplicates(feed_id=None): + 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) + @app.route('/index_database', methods=['GET']) @login_required def index_database(): |