mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
use streaming mode in openpyxl for peabody parser
This commit is contained in:
parent
c0534d9546
commit
06539a787d
1 changed files with 2 additions and 1 deletions
|
|
@ -23,8 +23,9 @@ class PeabodyParser(Parser):
|
|||
self,
|
||||
file_stream: BinaryIO,
|
||||
) -> Any:
|
||||
file_stream.seek(0)
|
||||
logger.info("[PeabodyParser] Loading workbook...")
|
||||
wb: Workbook = load_workbook(file_stream)
|
||||
wb: Workbook = load_workbook(file_stream, read_only=True, data_only=True)
|
||||
logger.info("[PeabodyParser] Successfully loaded workbook. Parsing assets...")
|
||||
assets = PeabodyParser._parse_assets(wb)
|
||||
logger.info(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue