Use sqlite3.Row in the datastore.
This commit is contained in:
parent
dbf2c0c1a2
commit
97d719f795
@ -194,6 +194,7 @@ class DataStore(object):
|
|||||||
except StandardError, e:
|
except StandardError, e:
|
||||||
logging.info("Could not access the data store. Reason: '%s'. Exiting..." % e)
|
logging.info("Could not access the data store. Reason: '%s'. Exiting..." % e)
|
||||||
os._exit(1)
|
os._exit(1)
|
||||||
|
self._dbcx.row_factory = sqlite3.Row
|
||||||
|
|
||||||
def __del__(self):
|
def __del__(self):
|
||||||
self._dbcx.close()
|
self._dbcx.close()
|
||||||
|
Loading…
Reference in New Issue
Block a user