figures/tasks.py
def populate_mau_metrics_for_site(site_id, month_for=None, force_update=False):
    """
    Collect (save) MAU metrics for the specified site

    Iterates over all courses in the site to collect MAU counts
    TODO: Decide how sites would be excluded and create filter
    TODO: Check results of 'store_mau_metrics' to log unexpected results
    """
    site = Site.objects.get(id=site_id)
    msg = 'Starting figures'
    logger.info(msg)
    for course_key in figures.sites.get_course_keys_for_site(site):
        populate_course_mau(site_id=site_id,
                            course_id=str(course_key),
                            month_for=month_for,
                            force_update=force_update)

    Collect (save) MAU metrics for the specified site

    Iterates over all courses in the site to collect MAU counts
    TODO: Decide how sites would be excluded and create filter
    TODO: Check results of 'store_mau_metrics' to log unexpected results
    
Collect (save) MAU metrics for the specified site
Iterates over all courses in the site to collect MAU counts
TODO: Decide how sites would be excluded and create filter
TODO: Check results of 'store_mau_metrics' to log unexpected results
Collect ( save ) MAU metrics for the specified site Iterates over all courses in the site to collect MAU counts TODO : Decide how sites would be excluded and create filter TODO : Check results of ' store_mau_metrics ' to log unexpected results
def populate_mau_metrics_for_site(site_id, month_for=None, force_update=False):
    site = Site.objects.get(id=site_id)
    msg = 'Starting figures'
    logger.info(msg)
    for course_key in figures.sites.get_course_keys_for_site(site):
        populate_course_mau(site_id=site_id,
                            course_id=str(course_key),
                            month_for=month_for,
                            force_update=force_update)
def populate_mau_metrics_for_site ( site_id , month_for = None , force_update = False ) : site = Site . objects . get ( id = site_id ) msg = 'Starting figures' logger . info ( msg ) for course_key in figures . sites . get_course_keys_for_site ( site ) : populate_course_mau ( site_id = site_id , course_id = str ( course_key ) , month_for = month_for , force_update = force_update )
Collect (save) MAU metrics for the specified site
Iterates over all courses in the site to collect MAU counts
TODO: Decide how sites would be excluded and create filter
TODO: Check results of 'store_mau_metrics' to log unexpected results
Collect ( save ) MAU metrics for the specified site Iterates over all courses in the site to collect MAU counts TODO : Decide how sites would be excluded and create filter TODO : Check results of ' store_mau_metrics ' to log unexpected results
"""
    Collect (save) MAU metrics for the specified site

    Iterates over all courses in the site to collect MAU counts
    TODO: Decide how sites would be excluded and create filter
    TODO: Check results of 'store_mau_metrics' to log unexpected results
    """
site_id
month_for
force_update