diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-13 10:26:32 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-04-13 10:26:32 +0200 |
commit | 2d55878213bb3f98ebe3c719310d246ae9860afa (patch) | |
tree | c2dac27e5e1931c8ee0e3e3772ea2b54dfaad854 /pyaggr3g470r/views.py | |
parent | No automatic indexation for the moment. (diff) | |
download | newspipe-2d55878213bb3f98ebe3c719310d246ae9860afa.tar.gz newspipe-2d55878213bb3f98ebe3c719310d246ae9860afa.tar.bz2 newspipe-2d55878213bb3f98ebe3c719310d246ae9860afa.zip |
Fixed history view.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 423bb55e..a8d7e19c 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -490,7 +490,7 @@ def management(): @app.route('/history/', methods=['GET']) @login_required def history(): - user = models.User.objects(email=g.user.email).first() + user = User.query.filter(User.id == g.user.id).first() return render_template('history.html') @app.route('/create_feed/', methods=['GET', 'POST']) |