Skip to content

Commit

Permalink
workspace_validator: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
bertsky authored Jul 9, 2023
1 parent 6991166 commit eede09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ocrd_validators/ocrd_validators/workspace_validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def _validate_page(self):
check_coords=self.page_coordinate_consistency in ['poly', 'both'],
check_baseline=self.page_coordinate_consistency in ['baseline', 'both'])
pg = page_from_file(f)
if 'pcgtsid' in self.page_checks and pg.pcGtsId != ocrd_file.ID:
page_report.add_warning('pc:PcGts/@pcGtsId differs from mets:file/@ID: "%s" !== "%s"' % (pg.pcGtsId or '', ocrd_file.ID or ''))
if 'pcgtsid' in self.page_checks and pg.pcGtsId != f.ID:
page_report.add_warning('pc:PcGts/@pcGtsId differs from mets:file/@ID: "%s" !== "%s"' % (pg.pcGtsId or '', f.ID or ''))
self.report.merge_report(page_report)

def _validate_page_xsd(self):
Expand Down

0 comments on commit eede09e

Please sign in to comment.