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

Method POST

openlibrary/plugins/admin/code.py:753–760  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

751 return render_template("admin/imports-add")
752
753 def POST(self):
754 i = web.input("identifiers")
755 identifiers = [line.strip() for line in i.identifiers.splitlines() if line.strip()]
756 batch_name = "admin"
757 batch = imports.Batch.find(batch_name, create=True)
758 batch.add_items(identifiers)
759 add_flash_message("info", "Added the specified identifiers to import queue.")
760 raise web.seeother("/admin/imports")
761
762
763class imports_by_date:

Callers

nothing calls this directly

Calls 2

add_itemsMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected