diff --git a/drama/helpers/get.py b/drama/helpers/get.py index 5cc40c20e..fbd3ac100 100644 --- a/drama/helpers/get.py +++ b/drama/helpers/get.py @@ -337,16 +337,13 @@ def get_comment(cid, v=None, graceful=False, **kwargs): x._is_blocked = block and block.target_id == v.id else: - q = g.db.query( + x = g.db.query( Comment, ).filter(Comment.id == i).first() if not q and not graceful: abort(404) - x=q[0] - x._is_exiled_for=q[1] - return x