diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-08 12:07:36 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-03-08 12:07:36 +0100 |
commit | 2378de49ba37116c5bf93054fd6aed65fa44022a (patch) | |
tree | 90bb6efddb1d8fc4772c74fcf5dda4dccef74b1a /pyaggr3g470r/views/views.py | |
parent | Better handling of the error logging in the crawler. (diff) | |
download | newspipe-2378de49ba37116c5bf93054fd6aed65fa44022a.tar.gz newspipe-2378de49ba37116c5bf93054fd6aed65fa44022a.tar.bz2 newspipe-2378de49ba37116c5bf93054fd6aed65fa44022a.zip |
Moved duplicate() function in utils.py. Some minor cosmethic changes.
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r-- | pyaggr3g470r/views/views.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py index 0f1f8765..9d368c42 100644 --- a/pyaggr3g470r/views/views.py +++ b/pyaggr3g470r/views/views.py @@ -47,7 +47,7 @@ from sqlalchemy.exc import IntegrityError from werkzeug import generate_password_hash import conf -from pyaggr3g470r import utils, notifications, export, duplicate +from pyaggr3g470r import utils, notifications, export from pyaggr3g470r.models import User, Feed, Article, Role from pyaggr3g470r.decorators import feed_access_required from pyaggr3g470r.forms import SignupForm, SigninForm, AddFeedForm, \ @@ -399,7 +399,7 @@ def duplicates(feed_id=None): """ feed = Feed.query.filter(Feed.user_id == g.user.id, Feed.id == feed_id).first() duplicates = [] - duplicates = duplicate.compare_documents(feed) + duplicates = utils.compare_documents(feed) return render_template('duplicates.html', duplicates=duplicates, feed=feed) @app.route('/index_database', methods=['GET']) |