Skip to content

Commit

Permalink
Enable check for metadata sheetname and is meta data sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
Etschbeijer committed Oct 18, 2024
1 parent b2b6e8b commit 100fc34
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Spreadsheet/Template.fs
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,12 @@ module Template =
(ResizeArray tags)
lastUpdated

let isMetadataSheetName (name : string) =
name = metaDataSheetName || name = obsoletemetaDataSheetName

let isMetadataSheet (sheet : FsWorksheet) =
isMetadataSheetName sheet.Name

let toMetadataSheet (template : Template) : FsWorksheet =
let sheet = FsWorksheet(metaDataSheetName)
Template.toRows template
Expand Down

0 comments on commit 100fc34

Please sign in to comment.