diff --git a/Makefile b/Makefile index 2c6f56e..4a05f07 100644 --- a/Makefile +++ b/Makefile @@ -69,6 +69,7 @@ codespell: deps-dev test: tests/assets deps-dev $(PYTHON) -m xmlrunner discover -v -s tests --output-file $(CURDIR)/unittest.xml + OCRD_METS_CACHING=true $(PYTHON) -m xmlrunner discover -v -s tests --output-file $(CURDIR)/unittest.xml ci: flake8 mypy test codespell diff --git a/ocrd_browser/model/document.py b/ocrd_browser/model/document.py index 1e0d2d2..534fd4e 100644 --- a/ocrd_browser/model/document.py +++ b/ocrd_browser/model/document.py @@ -354,6 +354,7 @@ def reorder(self, ordered_page_ids: List[str]) -> None: page_sequence.append(div) old_to_new = dict(zip(old_page_ids, self.page_ids)) + self.workspace.mets.refresh_caches() self.save_mets() self._emit('document_changed', 'reordered', old_to_new) diff --git a/requirements.txt b/requirements.txt index f76c053..f7ad882 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ -ocrd +ocrd >= 2.43.0 Pillow numpy >= 1.20 opencv-python-headless