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

Method process

openlibrary/core/models.py:120–125  ·  view source on GitHub ↗

Converts entries in version dict into objects.

(v)

Source from the content-addressed store, hash-verified

118 history.created = self.created
119
120 def process(v):
121 """Converts entries in version dict into objects."""
122 v = web.storage(v)
123 v.created = parse_datetime(v.created)
124 v.author = v.author and self._site.get(v.author, lazy=True)
125 return v
126
127 history.initial = [process(v) for v in history.initial]
128 history.recent = [process(v) for v in history.recent]

Callers

nothing calls this directly

Calls 2

parse_datetimeFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected