def total_weeks_aggregated():
    """
    return total of weeks aggregates to MetricWeek model
    """
    try:
        first_week = MetricWeek.objects.all().order_by('-date_up')[0].date_up
    except IndexError:
        first_week = week_for_date(datetime.date.today())
    return (first_week - datetime.date.today()).days / 7
dataset/ETHPy150Open rmaceissoft/django-user-metrics/user_metrics/utils.py/total_weeks_aggregated/swapped operands of `-`