Skip to content

Commit

Permalink
Also check obsolete metadata sheet names during upload #476
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Jul 12, 2024
1 parent 29c421e commit 57669ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Client/Spreadsheet/IO.fs
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ module Xlsx =
let ws = fswb.GetWorksheets()
let arcfile =
match ws with
| _ when ws.Exists (fun ws -> ARCtrl.Spreadsheet.ArcAssay.metaDataSheetName = ws.Name ) ->
| _ when ws.Exists (fun ws -> ARCtrl.Spreadsheet.ArcAssay.metaDataSheetName = ws.Name || ARCtrl.Spreadsheet.ArcAssay.obsoleteMetaDataSheetName = ws.Name) ->
ArcAssay.fromFsWorkbook fswb |> Assay
| _ when ws.Exists (fun ws -> ARCtrl.Spreadsheet.ArcStudy.metaDataSheetName = ws.Name ) ->
| _ when ws.Exists (fun ws -> ARCtrl.Spreadsheet.ArcStudy.metaDataSheetName = ws.Name || ARCtrl.Spreadsheet.ArcStudy.obsoleteMetaDataSheetName = ws.Name) ->
ArcStudy.fromFsWorkbook fswb |> Study
| _ when ws.Exists (fun ws -> ARCtrl.Spreadsheet.ArcInvestigation.metaDataSheetName = ws.Name ) ->
| _ when ws.Exists (fun ws -> ARCtrl.Spreadsheet.ArcInvestigation.metaDataSheetName = ws.Name) ->
ArcInvestigation.fromFsWorkbook fswb |> Investigation
| _ when ws.Exists (fun ws -> ARCtrl.Spreadsheet.Template.metaDataSheetName = ws.Name ) ->
ARCtrl.Spreadsheet.Template.fromFsWorkbook fswb |> Template
Expand Down

0 comments on commit 57669ed

Please sign in to comment.