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

Method GET

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

Source from the content-addressed store, hash-verified

767
768class show_log:
769 def GET(self):
770 i = web.input(name="")
771 logname = i.name
772 filepath = config.get("errorlog", "errors") + "/" + logname + ".html"
773 if os.path.exists(filepath):
774 with open(filepath) as f:
775 return f.read()
776
777
778class pd_dashboard:

Callers

nothing calls this directly

Calls 3

readMethod · 0.80
getMethod · 0.45
existsMethod · 0.45

Tested by

no test coverage detected