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

Method GET

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

Source from the content-addressed store, hash-verified

489
490class block:
491 def GET(self):
492 page = web.ctx.site.get("/admin/block") or web.storage(ips=[web.storage(ip="127.0.0.1", duration="1 week", since="1 day")])
493 return render_template("admin/block", page)
494
495 def POST(self):
496 i = web.input()

Callers

nothing calls this directly

Calls 2

render_templateFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected