Added product tests
This commit is contained in:
@@ -17,7 +17,9 @@ class DatabaseController(ABC):
|
||||
def __init__(self):
|
||||
self._conn = None
|
||||
try:
|
||||
self._conn = sqlite3.connect(self.__sqlitefile)
|
||||
# Creates a connection and specifies a flag to parse all types back down into
|
||||
# Python declared types e.g. date & time
|
||||
self._conn = sqlite3.connect(self.__sqlitefile, detect_types=sqlite3.PARSE_DECLTYPES)
|
||||
except sqlite3.Error as e:
|
||||
# Close the connection if still open
|
||||
if self._conn:
|
||||
|
||||
Reference in New Issue
Block a user