bug fix: sql handler ...

pull/1/head
Steve Nyemba 2 years ago
parent ae1a4cec73
commit 8a6beae956

@ -189,7 +189,7 @@ class SQLiteWriter(SQLite,DiskWriter) :
# self.conn.row_factory = sqlite3.Row
# self.fields = args['fields'] if 'fields' in args else []
if self.fields and not self.isready():
if self.fields and not self.isready() and self.table:
self.init(self.fields)
SQLiteWriter.connection = self.conn
def init(self,fields):
@ -210,7 +210,7 @@ class SQLiteWriter(SQLite,DiskWriter) :
r = r.fetchall()
cursor.close()
return r[0][0]
return r[0][0] != 0
except Exception as e:
pass
return 0

Loading…
Cancel
Save