Dont include automated comments in the recent comments sidebar

This commit is contained in:
Sander Ferdinand 2018-07-12 18:54:44 +02:00
parent 11a763310e
commit 032437c37b

View file

@ -10,7 +10,7 @@ from wowfunding.orm.orm import Proposal, User, Comment
@app.context_processor
def templating():
from flask.ext.login import current_user
recent_comments = db_session.query(Comment).order_by(Comment.date_added.desc()).limit(3).all()
recent_comments = db_session.query(Comment).filter(Comment.automated == False).order_by(Comment.date_added.desc()).limit(3).all()
summary_data = Summary.fetch_stats()
return dict(logged_in=current_user.is_authenticated,
current_user=current_user,