projects
/
zzz-floof.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7c20a26
)
Fixed bad update() syntax when adding a child comment.
author
Eevee
<git@veekun.com>
Sun, 25 Oct 2009 00:15:56 +0000
(17:15 -0700)
committer
Eevee
<git@veekun.com>
Sun, 25 Oct 2009 00:15:56 +0000
(17:15 -0700)
floof/model/comments.py
patch
|
blob
|
history
diff --git
a/floof/model/comments.py
b/floof/model/comments.py
index
5e57c14
..
ef3a948
100644
(file)
--- 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) \
# 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) \
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
# Then stick the new comment in the right place
self.left = parent_right