Skip to content
This repository has been archived by the owner on May 3, 2018. It is now read-only.

Commit

Permalink
Get the version from the correct config value
Browse files Browse the repository at this point in the history
  • Loading branch information
David Smith committed Nov 15, 2017
1 parent bfeef44 commit aa86fab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion factset/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,10 @@ import (
"strconv"
"strings"

log "github.com/sirupsen/logrus"
"path"
"regexp"

log "github.com/sirupsen/logrus"
)

// Servicer - service interface to be able to mock for testing
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ func convertConfig(configString string) (loader.Config, error) {
return loader.Config{}, errors.New("package config is incorrectly configured; it has the wrong number of values. See readme for instructions")
}

version, _ := strconv.Atoi(splitPkg[3])
version, _ := strconv.Atoi(splitPkg[4])
config.AddPackage(factset.Package{
Dataset: splitPkg[0],
FSPackage: splitPkg[1],
Expand Down

0 comments on commit aa86fab

Please sign in to comment.