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

Method summary

openlibrary/core/booknotes.py:13–25  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

11
12 @classmethod
13 def summary(cls) -> dict:
14 return {
15 "total_notes_created": {
16 "total": cls.total_booknotes(),
17 "month": cls.total_booknotes(since=DATE_ONE_MONTH_AGO),
18 "week": cls.total_booknotes(since=DATE_ONE_WEEK_AGO),
19 },
20 "total_note_takers": {
21 "total": cls.total_unique_users(),
22 "month": cls.total_unique_users(since=DATE_ONE_MONTH_AGO),
23 "week": cls.total_unique_users(since=DATE_ONE_WEEK_AGO),
24 },
25 }
26
27 @classmethod
28 def total_booknotes(cls, since=None) -> int:

Callers

nothing calls this directly

Calls 2

total_booknotesMethod · 0.80
total_unique_usersMethod · 0.45

Tested by

no test coverage detected