Skip to content

Commit

Permalink
[import-] fix build with missing options
Browse files Browse the repository at this point in the history
  • Loading branch information
saulpw committed Oct 12, 2023
1 parent 970d3d6 commit f7a8dd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions visidata/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def getDefaultSaveName(sheet):
return str(src.with_suffix('')) + '.' + sheet.options.save_filetype
return str(src)
else:
return sheet.name+'.'+getattr(sheet, 'filetype', options.save_filetype)
return sheet.name+'.'+getattr(sheet, 'filetype', sheet.options.save_filetype)


@VisiData.api
Expand All @@ -110,7 +110,7 @@ def saveSheets(vd, givenpath, *vsheets, confirm_overwrite=False):
vd.warning('no sheets to save')
return

filetype = givenpath.ext or options.save_filetype
filetype = givenpath.ext or vd.options.save_filetype

vd.clearCaches()

Expand Down

0 comments on commit f7a8dd9

Please sign in to comment.