Update stats for today.
(self, today)
| 468 | return delegate.RawText(json) |
| 469 | |
| 470 | def POST(self, today): |
| 471 | """Update stats for today.""" |
| 472 | doc = self.get_stats(today) |
| 473 | doc._save(action="create-stats") |
| 474 | raise web.seeother(web.ctx.path) |
| 475 | |
| 476 | def get_stats(self, today): |
| 477 | stats = web.ctx.site._request("/stats/" + today) |