X-Git-Url: http://git.veekun.com/zzz-floof.git/blobdiff_plain/7c20a2661d532fe1e338f0f0dfb9fe42113ab103..f263f51648eef9739caa92e19ec45b32d7a1e49e:/floof/model/comments.py?ds=sidebyside diff --git a/floof/model/comments.py b/floof/model/comments.py index 5e57c14..ef3a948 100644 --- a/floof/model/comments.py +++ b/floof/model/comments.py @@ -83,10 +83,10 @@ class Comment(Entity): # comment's left/right Comment.query.filter(Comment.discussion == self.discussion) \ .filter(Comment.left >= parent_right) \ - .update({ Comment.left: Comment.left + 2 }) + .update({ 'left': Comment.left + 2 }) Comment.query.filter(Comment.discussion == self.discussion) \ .filter(Comment.right >= parent_right) \ - .update({ Comment.right: Comment.right + 2 }) + .update({ 'right': Comment.right + 2 }) # Then stick the new comment in the right place self.left = parent_right