(request, year, month, day)
return compute_stats(date)
Statistics about this website for the given date.

    Parameters:
    year -- Year, 4 digits.
    month -- Month, 2 digits.
    day -- Day, 2 digits.
Statistics about this website for the given date.
Statistics about this website for the given date .
def daily_stats_on_date(request, year, month, day):
    """
    Statistics about this website for the given date.

    Parameters:
    year -- Year, 4 digits.
    month -- Month, 2 digits.
    day -- Day, 2 digits.
    """
    date = datetime(int(year), int(month), int(day))
    # We don't provide stats for today or the future.
    if date.date() >= datetime.today().date():
        return {}

    return compute_stats(date)
def daily_stats_on_date ( request , year , month , day ) : date = datetime ( int ( year ) , int ( month ) , int ( day ) ) # We don't provide stats for today or the future. if date . date ( ) >= datetime . today ( ) . date ( ) : return { } return compute_stats ( date )