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

Function f

openlibrary/plugins/admin/code.py:543–546  ·  view source on GitHub ↗
(dates)

Source from the content-addressed store, hash-verified

541
542def get_admin_stats():
543 def f(dates):
544 keys = ["/admin/stats/" + date.isoformat() for date in dates]
545 docs = web.ctx.site.get_many(keys)
546 return g(docs)
547
548 def has_doc(date):
549 return bool(web.ctx.site.get("/admin/stats/" + date.isoformat()))

Callers 1

get_admin_statsFunction · 0.70

Calls 2

gFunction · 0.70
get_manyMethod · 0.45

Tested by

no test coverage detected