(cls)
| 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: |
nothing calls this directly
no test coverage detected