config test
This commit is contained in:
parent
f69407305a
commit
c9d2c365d5
@ -133,10 +133,13 @@ class SQLite:
|
||||
self.conn.close()
|
||||
|
||||
def dbQuery(self,query='SELECT'):
|
||||
self.__openDb()
|
||||
self.cursor.execute(query)
|
||||
rows = self.cursor.fetchall()
|
||||
self.__closeDb()
|
||||
try:
|
||||
self.__openDb()
|
||||
self.cursor.execute(query)
|
||||
rows = self.cursor.fetchall()
|
||||
self.__closeDb()
|
||||
except sqlite3.OperationalError:
|
||||
rows = None
|
||||
return rows
|
||||
|
||||
def dbInsert(self,ts,k,v):
|
||||
|
Loading…
Reference in New Issue
Block a user