def get_content_ids(self, from_date=None):
        if from_date is None:
            return range(len(self._content))
        else:
            from_time = time.mktime(from_date.timetuple())

            result = []
            for id in range(len(self._content)):
                when_mod = self.get_content_by_id(id).get('when_modified', '')

                if when_mod != '':
                    when_mod = time.mktime(when_mod.timetuple())
                
                    if from_time <= when_mod:
                        result.append(id)

            return result
dataset/ETHPy150Open infrae/moai/moai/provider/list.py/ListBasedContentProvider.get_content_ids/original