|
"""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*.""" |
|
|
|
return _base("week") |
|
|
|
|
|
def get_monthly_content_flow_data(): |
|
"""Return Content Flow data for the *latest 30 days*.""" |
|
return _base("month") |
|
|
|
|
|
get_content_flow_data = _base |
|
|
|
__all__ = [ |
|
"get_content_flow_data", |
|
"get_today_content_flow_data", |
|
"get_weekly_content_flow_data", |
|
"get_monthly_content_flow_data", |
|
] |
|
|