aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-13 10:26:32 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-13 10:26:32 +0200
commit2d55878213bb3f98ebe3c719310d246ae9860afa (patch)
treec2dac27e5e1931c8ee0e3e3772ea2b54dfaad854 /pyaggr3g470r/views.py
parentNo automatic indexation for the moment. (diff)
downloadnewspipe-2d55878213bb3f98ebe3c719310d246ae9860afa.tar.gz
newspipe-2d55878213bb3f98ebe3c719310d246ae9860afa.tar.bz2
newspipe-2d55878213bb3f98ebe3c719310d246ae9860afa.zip
Fixed history view.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py2
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'])
bgstack15