mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-07-01 01:19:52 +02:00
🚧 ppn2ocr: s/contain/encapsulate
This commit is contained in:
parent
f893b339c5
commit
10f5198fa6
1 changed files with 1 additions and 1 deletions
2
ppn2ocr
2
ppn2ocr
|
@ -55,7 +55,7 @@ def iiif_url_for_dms_url(dms_url, ppn, size):
|
|||
"""
|
||||
Construct an IIIF URL from a dms URL.
|
||||
|
||||
This function exists to contain the hack of rewriting the URL to get IIIF.
|
||||
This function exists to encapsulate the hack of rewriting the URL to get IIIF.
|
||||
"""
|
||||
if ppn not in dms_url:
|
||||
raise ValueError(f"Unexpected URL {dms_url}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue