@@ -52,20 +52,20 @@ var (
5252
5353func Instance () * BookkeepingWrapper {
5454 once .Do (func () {
55- apiUrl , err := url .Parse (viper .GetString ("bookkeepingBaseUri" ))
55+ apiUrl , err := url .Parse (viper .GetString ("bookkeepingBaseUri" ))
5656 if err == nil {
57- apiUrl .Path = path .Join ( apiUrl .Path + "api" )
57+ apiUrl .Path = path .Join (apiUrl .Path + "api" )
5858 clientAPI .InitializeApi (apiUrl .String (), viper .GetString ("bookkeepingToken" ))
5959 } else {
6060 log .WithField ("error" , err .Error ()).
61- Error ("unable to parse the Bookkeeping base URL" )
61+ Error ("unable to parse the Bookkeeping base URL" )
6262 clientAPI .InitializeApi (path .Join (viper .GetString ("bookkeepingBaseUri" )+ "api" ), viper .GetString ("bookkeepingToken" ))
6363 }
6464 })
6565 return instance
6666}
6767
68- func (bk * BookkeepingWrapper ) CreateRun (activityId string , nDetectors int , nEpns int , nFlps int , runNumber int32 , runType string , timeO2Start time.Time , timeTrgStart time.Time , dd_flp bool , dcs bool , epn bool , epnTopology string ) {
68+ func (bk * BookkeepingWrapper ) CreateRun (activityId string , nDetectors int , nEpns int , nFlps int , runNumber int32 , runType string , timeO2Start time.Time , timeTrgStart time.Time , dd_flp bool , dcs bool , epn bool , epnTopology string , detectors string ) {
6969 var runtypeAPI sw.RunType
7070 switch runType {
7171 case string (sw .TECHNICAL_RunType ):
@@ -79,7 +79,7 @@ func (bk *BookkeepingWrapper) CreateRun(activityId string, nDetectors int, nEpns
7979 runtypeAPI = sw .TECHNICAL_RunType
8080 }
8181
82- clientAPI .CreateRun (activityId , int32 (nDetectors ), int32 (nEpns ), int32 (nFlps ), runNumber , runtypeAPI , timeO2Start , timeTrgStart , dd_flp , dcs , epn , epnTopology )
82+ clientAPI .CreateRun (activityId , int32 (nDetectors ), int32 (nEpns ), int32 (nFlps ), runNumber , runtypeAPI , timeO2Start , timeTrgStart , dd_flp , dcs , epn , epnTopology , sw . Detectors ( detectors ) )
8383}
8484
8585func (bk * BookkeepingWrapper ) UpdateRun (runNumber int32 , runResult string , timeO2End time.Time , timeTrgEnd time.Time ) {
0 commit comments