File size: 800 Bytes
c2e02ba 2646146 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
"""Public interface for content-related summary calculations."""
from ..utils import get_content_flow_data as _base
def get_today_content_flow_data():
"""Return Content Flow data for *today*."""
return _base("today")
def get_weekly_content_flow_data():
"""Return Content Flow data for the *latest 7 days*."""
# the internal util accepts either ``week`` or ``weekly``
return _base("week")
def get_monthly_content_flow_data():
"""Return Content Flow data for the *latest 30 days*."""
return _base("month")
# Re-export the generic helper so legacy imports keep working
get_content_flow_data = _base # type: ignore
__all__ = [
"get_content_flow_data",
"get_today_content_flow_data",
"get_weekly_content_flow_data",
"get_monthly_content_flow_data",
]
|