insert処理がデータベースの型とあっていなかったため修正.
@@ -116,7 +116,7 @@ | ||
116 | 116 | else: |
117 | 117 | when = datetime.now(utc) |
118 | 118 | when_ts = to_timestamp(when) |
119 | - sql = ("""insert into question values(%d,%d,'%s',%d,'%s')""" ) % (int(enquete_id) , when_ts, question_title, int(type), detail) | |
119 | + sql = ("""insert into question values(%d,%d,'%s',%d,'%s',%d)""" ) % (int(enquete_id) , when_ts, question_title, int(type), detail, 0) | |
120 | 120 | _self.log.debug('%s' % sql) |
121 | 121 | cursor.execute(sql) |
122 | 122 | except Exception,e: |