def get(self, request, slug, year, month):
        addon = self.get_addon(request, slug)
        check_stats_permission(request, addon)

        data = []
        path = u'{id}/{year}/{month}/'.format(
            id=addon.id, year=year, month=month)

        try:
            files = storage.listdir(path)
        except __HOLE__:
            return Response({
                'error': 'No archived data for addon "%s" found.' % addon.slug,
            }, status=status.HTTP_404_NOT_FOUND)

        for file_ in files[1]:
            file_name, _ = os.path.splitext(file_)
            date_str, model_name = file_name.rsplit('_', 1)
            day = datetime.strptime(date_str, '%Y_%m_%d').date()

            data.append({
                'addon_id': addon.id,
                'date': day,
                'model_name': model_name
            })

        return Response(data)
dataset/ETHPy150Open mozilla/addons-server/src/olympia/stats/views.py/ArchiveListView.get