fix (data): Incorrect cache selection.

This commit is contained in:
2022-01-28 16:20:25 +02:00
parent 22a73ba0c6
commit 73ae53f1b0

View File

@@ -188,7 +188,7 @@ class RowTable(Table):
self.columns = columns self.columns = columns
self.id_col = id_col self.id_col = id_col
self.multi_key = isinstance(id_col, tuple) self.multi_key = isinstance(id_col, tuple)
self.row_cache = (cache or LRUCache(cache_size)) if use_cache else None self.row_cache = (cache if cache is not None else LRUCache(cache_size)) if use_cache else None
def id_from_row(self, row): def id_from_row(self, row):
if self.multi_key: if self.multi_key: