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

Method POST

openlibrary/plugins/admin/code.py:470–474  ·  view source on GitHub ↗

Update stats for today.

(self, today)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 2

get_statsMethod · 0.95
_saveMethod · 0.80

Tested by

no test coverage detected