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

Method GET

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

Source from the content-addressed store, hash-verified

179
180class reload:
181 def GET(self):
182 if servers := config.get("plugin_admin", {}).get("webservers", []):
183 body = "".join(self.reload(servers))
184 else:
185 body = "No webservers specified in the configuration file."
186
187 return render_template("message", "Reload", body)
188
189 def reload(self, servers):
190 for s in servers:

Callers

nothing calls this directly

Calls 3

reloadMethod · 0.95
render_templateFunction · 0.70
getMethod · 0.45

Tested by

no test coverage detected