analytics/maintenance.py
def calculate_statistics(stat, frequencies):
    """
    Calculates all of the metrics associated with the registered gadgets.
    """
    stats = ensure_list(stat)
    frequencies = ensure_list(frequencies)

    for stat in stats:
        for f in frequencies:
            print "Calculating %s (%s)..." % (stat.__name__, settings.STATISTIC_FREQUENCY_DICT[f])
            stat.calculate(f)
def calculate_statistics(stat, frequencies):
    stats = ensure_list(stat)
    frequencies = ensure_list(frequencies)

    for stat in stats:
        for f in frequencies:
            print "Calculating %s (%s)..." % (stat.__name__, settings.STATISTIC_FREQUENCY_DICT[f])
            stat.calculate(f)
def calculate_statistics ( stat , frequencies ) : stats = ensure_list ( stat ) frequencies = ensure_list ( frequencies ) for stat in stats : for f in frequencies : print "Calculating %s (%s)..." % ( stat . __name__ , settings . STATISTIC_FREQUENCY_DICT [ f ] ) stat . calculate ( f )
Calculates all of the metrics associated with the registered gadgets.
Calculates all of the metrics associated with the registered gadgets .