def _read_ods(self, record, options): doc = odf_ods_reader.ODSReader(file=io.BytesIO(record.file)) return ( row for row in doc.getFirstSheet() if any(x for x in row if x.strip()) )
def _read_ods(self, options): """ Read file content using ODSReader custom lib """ doc = odf_ods_reader.ODSReader(file=io.BytesIO(self.file)) return ( row for row in doc.getFirstSheet() if any(x for x in row if x.strip()) )