Skip to content

Commit

Permalink
Start remote ingest enumerate at 1 (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
blms committed Dec 4, 2023
1 parent e7d6d4a commit 9339ae2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/ingest/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ def open_metadata(self):

def create_canvases(self):
# TODO: What if there are multiple sequences? Is that even allowed in IIIF?
for position, sc_canvas in enumerate(self.remote_manifest['sequences'][0]['canvases']):
for position, sc_canvas in enumerate(self.remote_manifest['sequences'][0]['canvases'], start=1):
canvas_metadata = None
# TODO: we will need some sort of check for IIIF API version, but not
# everyone includes a context for each canvas.
Expand Down

0 comments on commit 9339ae2

Please sign in to comment.