Skip to content

Commit

Permalink
Add back workbook.save
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Aug 5, 2023
1 parent 0b8f6a4 commit b7ee5b5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions diskimageprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,6 @@ def create_aspace_excel_sheet(args, sips, volumes, logger):
workbook = openpyxl.load_workbook(filename=xlsx_path)
worksheet = workbook["Data"]

# TODO: Debug logging
if worksheet is None:
logger.info("worksheet is none")
worksheet = workbook.active
if worksheet is None:
logger.info("workbook.active is none")

# TODO: Deduplicate with create_speadsheet
# Maybe create separate method that creates dict with info, and handle
# opening/writing csv or xlsx separately
Expand Down Expand Up @@ -427,6 +420,7 @@ def create_aspace_excel_sheet(args, sips, volumes, logger):

logger.info("Described %s successfully." % (sip_path))

workbook.save(filename=xlsx_path)
workbook.close()

logger.info("ArchivesSpace description XLSX created.")
Expand Down

0 comments on commit b7ee5b5

Please sign in to comment.