diff --git a/tildes/tildes/views/topic.py b/tildes/tildes/views/topic.py index 6a33071..d739268 100644 --- a/tildes/tildes/views/topic.py +++ b/tildes/tildes/views/topic.py @@ -61,7 +61,7 @@ def post_group_topics( if link: # check to see if this link has been posted before previous_topics = ( - request.db_session.query(Topic) + request.query(Topic) .filter(Topic.link == link) .order_by(desc(Topic.created_time)) .limit(5)