MCPcopy Create free account
hub / github.com/internetarchive/openlibrary / process

Method process

openlibrary/coverstore/code.py:457–466  ·  view source on GitHub ↗
(r)

Source from the content-addressed store, hash-verified

455 else:
456
457 def process(r):
458 return {
459 "id": r.id,
460 "olid": r.olid,
461 "created": r.created.isoformat(),
462 "last_modified": r.last_modified.isoformat(),
463 "source_url": r.source_url,
464 "width": r.width,
465 "height": r.height,
466 }
467
468 result = [process(r) for r in result]
469

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected