1
o618 OP 弄了一下午都没弄好,怎么破?
|
2
whtsky 2014-02-09 21:28:24 +08:00 via iPhone
把第二句放倒第一句前面…
|
3
o618 OP @whtsky 放到前面又抛出这个错误:
File "/usr/local/lib/python2.7/dist-packages/MySQLdb/connections.py", line 36, in defaulterrorhandler raise errorclass, errorvalue OperationalError: (1366, "Incorrect integer value: '<bound method VoteModel.get_vote_by_topic_id_and_trigger_user_id of <model.vote.VoteModel object at 0x8c9544c>>' for column 'up_vote' at row 1") [E 140209 22:43:49 web:1635] 500 GET /t/7 (127.0.0.1) 65.44ms |
4
kevinkim 2014-02-10 09:03:59 +08:00
看看数据库字段名是否叫“up_vote”,其次,
self.topic_model.update_topic_by_topic_id(topic_id, {"up_vote": template_variables["votes"],}) 最后一个逗号删除看看。 |