Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
tw4l committed Aug 5, 2023
1 parent f740eb7 commit 86ab7a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diskimageprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,15 +261,15 @@ def create_aspace_excel_sheet(args, sips, volumes, logger):
"""Create new copy of ASpace XLSX and append rows describing disk images."""
xlsx_path = os.path.abspath(os.path.join(args.destination, "description.xlsx"))
template_path = os.path.abspath(
THIS_DIR, "aspace_template", "aspace_import_template.xlsx"
os.path.join(THIS_DIR, "aspace_template", "aspace_import_template.xlsx")
)

try:
shutil.copyfile(template_path, xlsx_path)
except OSError as err:
logger.error("Unable to copy ASpace template to destination")

workbook = xlsxwriter.Workbook(xlsx_path)
workbook = xlsxwriter.Workbook(xlsx_path, {"strings_to_numbers": True})
worksheet = workbook.get_worksheet_by_name("Data")

# TODO: Deduplicate with create_speadsheet
Expand Down

0 comments on commit 86ab7a9

Please sign in to comment.