(self)
| 306 | |
| 307 | class 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 | |
| 322 | class QAHandler(BaseHandler): |
nothing calls this directly
no test coverage detected