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

Function g

openlibrary/plugins/admin/code.py:551–559  ·  view source on GitHub ↗
(docs)

Source from the content-addressed store, hash-verified

549 return bool(web.ctx.site.get("/admin/stats/" + date.isoformat()))
550
551 def g(docs):
552 return {
553 "edits": {
554 "human": sum(doc["edits"]["human"] for doc in docs),
555 "bot": sum(doc["edits"]["bot"] for doc in docs),
556 "total": sum(doc["edits"]["total"] for doc in docs),
557 },
558 "members": sum(doc["members"] for doc in docs),
559 }
560
561 current_date = date.today()
562

Callers 2

fFunction · 0.70
get_admin_statsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected