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

Method GET

openlibrary/plugins/admin/code.py:288–295  ·  view source on GitHub ↗

Updates an Open Library edition's Archive.org item by writing its latest openlibrary_work and openlibrary_edition to the Archive.org item's metadata.

(self)

Source from the content-addressed store, hash-verified

286
287class sync_ol_ia:
288 def GET(self):
289 """Updates an Open Library edition's Archive.org item by writing its
290 latest openlibrary_work and openlibrary_edition to the
291 Archive.org item's metadata.
292 """
293 i = web.input(edition_id="")
294 data = update_ia_metadata_for_ol_edition(i.edition_id)
295 return delegate.RawText(json.dumps(data), content_type="application/json")
296
297
298class people_view:

Callers

nothing calls this directly

Calls 2

dumpsMethod · 0.80

Tested by

no test coverage detected