'Filter the last week of user actions.'

def GetReportData(self, get_report_args, token):

    ret = rdf_report_plugins.ApiReportData(representation_type=rdf_report_plugins.ApiReportData.RepresentationType.PIE_CHART)
    try:
        timerange_offset = get_report_args.duration
        timerange_end = (get_report_args.start_time + timerange_offset)
        counts = {}
        try:
            for event in report_utils.GetAuditLogEntries(timerange_offset, timerange_end, token):
                counts.setdefault(event.user, 0)
                counts[event.user] += 1
        except ValueError:
            pass
        ret.pie_chart.data = sorted((rdf_report_plugins.ApiReportDataPoint1D(x=count, label=user) for (user, count) in counts.iteritems() if (user not in aff4_users.GRRUser.SYSTEM_USERS)), key=(lambda series: series.label))
    except IOError:
        pass
    return ret
