소스 검색

bug fixes: sqlite writer with sqlalchemy

Steve Nyemba 1 년 전
부모
커밋
c3ebd32a40
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      transport/disk.py

+ 1 - 1
transport/disk.py

@@ -218,7 +218,7 @@ class SQLiteWriter(SQLite,DiskWriter) :
 				_data = [_data]
 			_table = self.table if 'table' not in _args else _args['table']
 			_df = pd.DataFrame(_data)
-			_df.to_sql(_table,self._engine.connect()if_exists='append',index=False)
+			_df.to_sql(_table,self._engine.connect(),if_exists='append',index=False)
 		except Exception as e:
 			print (e)
 		SQLiteWriter.LOCK.release()