MCPcopy
hub / github.com/wzpan/wukong-robot / get

Method get

server/server.py:308–319  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

306
307class DonateHandler(BaseHandler):
308 def get(self):
309 if not self.isValidated():
310 self.redirect("/login")
311 return
312 r = requests.get(
313 "https://raw.githubusercontent.com/wzpan/wukong-contrib/master/docs/donate.md"
314 )
315 content = markdown.markdown(
316 r.text,
317 extensions=["codehilite", "tables", "fenced_code", "meta", "nl2br", "toc"],
318 )
319 self.render("donate.html", content=content)
320
321
322class QAHandler(BaseHandler):

Callers

nothing calls this directly

Calls 2

isValidatedMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected