bug fix with diskwriter (adding return carriage)

pull/1/head
Steve L. Nyemba 4 years ago
parent 617f829e1e
commit 4a985e82dc

@ -161,7 +161,9 @@ class SQLiteWriter(DiskWriter) :
sql = " " .join(["INSERT INTO ",self.table,"(", ",".join(self.fields) ,")", "values(':values')"]) sql = " " .join(["INSERT INTO ",self.table,"(", ",".join(self.fields) ,")", "values(':values')"])
for row in info : for row in info :
cursor.execute(sql.replace(":values",json.dumps(row))) stream = json.dumps(row)
stream = stream.replace("'","''")
cursor.execute(sql.replace(":values",stream) )
# self.conn.commit() # self.conn.commit()
# print (sql) # print (sql)

Loading…
Cancel
Save