mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Force reevaluation of composite columns in the cache if a value in the cache changes.
This commit is contained in:
parent
d826f33d1a
commit
d1f4ba8c44
@ -914,6 +914,7 @@ class ResultCache(SearchQueryParser): # {{{
|
|||||||
def set(self, row, col, val, row_is_id=False):
|
def set(self, row, col, val, row_is_id=False):
|
||||||
id = row if row_is_id else self._map_filtered[row]
|
id = row if row_is_id else self._map_filtered[row]
|
||||||
self._data[id][col] = val
|
self._data[id][col] = val
|
||||||
|
self._data[id].refresh_composites()
|
||||||
|
|
||||||
def get(self, row, col, row_is_id=False):
|
def get(self, row, col, row_is_id=False):
|
||||||
id = row if row_is_id else self._map_filtered[row]
|
id = row if row_is_id else self._map_filtered[row]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user