mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-30 15:33:42 +08:00
BUG: Force string for asset data values.
Internal tests depend on string vs. unicode for various asset data, so enforce strings by setting the text_factory on the sqlite connection.
This commit is contained in:
@@ -116,6 +116,7 @@ class AssetFinder(object):
|
||||
pd.Timestamp('now', tz='UTC'))
|
||||
|
||||
self.conn = sqlite3.connect(db_path)
|
||||
self.conn.text_factory = str
|
||||
self.cursor = self.conn.cursor()
|
||||
|
||||
# The AssetFinder also holds a nested-dict of all metadata for
|
||||
|
||||
Reference in New Issue
Block a user