minor bug fix

This commit is contained in:
Steve Nyemba 2023-11-30 12:40:57 -06:00
parent f1fa4b93e8
commit 56bdda17b7
1 changed files with 4 additions and 3 deletions

View File

@ -219,6 +219,7 @@ class SQLiteWriter(SQLite,DiskWriter) :
elif type(info) == pd.DataFrame : elif type(info) == pd.DataFrame :
info = info.fillna('') info = info.fillna('')
info = info.to_dict(orient='records') info = info.to_dict(orient='records')
if not self.fields : if not self.fields :
_rec = info[0] _rec = info[0]
self.init(list(_rec.keys())) self.init(list(_rec.keys()))