Skip to content

Commit

Permalink
Workspace.reload_mets: fix for METS server case
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky committed Sep 1, 2024
1 parent 7d98c27 commit 6b23b65
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ocrd/workspace.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,10 @@ def reload_mets(self):
"""
Reload METS from the filesystem.
"""
self.mets = OcrdMets(filename=self.mets_target)
if self.is_remote:
self.mets.reload()
else:
self.mets = OcrdMets(filename=self.mets_target)

@deprecated_alias(pageId="page_id")
@deprecated_alias(ID="file_id")
Expand Down

0 comments on commit 6b23b65

Please sign in to comment.