Skip to content

Commit

Permalink
Merge pull request #5 from spiegel-im-spiegel/fix-bugs-and-testing
Browse files Browse the repository at this point in the history
Fix bugs and testing
  • Loading branch information
spiegel-im-spiegel authored Oct 29, 2019
2 parents 3b24b2f + b80d83b commit 8d9c978
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@

# Other files and folders
*.bak
dist/
7 changes: 4 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@ builds:
- "386"
- arm
- arm64
goarm:
- "6"
main: ./
flags:
- -trimpath
ldflags: -s -w -X github.com/spiegel-im-spiegel/books-data/facade.Version={{ .Version }}
binary: books-data

archive:
archives:
-
format: tar.gz
format_overrides:
- goos: windows
Expand Down
2 changes: 1 addition & 1 deletion api/pa/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (i *Item) Creators() []entity.Creator {
}

func (i *Item) Publisher() string {
if i.ItemInfo != nil && i.ItemInfo.ByLineInfo != nil {
if i.ItemInfo != nil && i.ItemInfo.ByLineInfo != nil && i.ItemInfo.ByLineInfo.Manufacturer != nil {
return i.ItemInfo.ByLineInfo.Manufacturer.DisplayValue
}
return ""
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ require (
github.com/spiegel-im-spiegel/errs v0.3.2
github.com/spiegel-im-spiegel/gocli v0.10.1
github.com/spiegel-im-spiegel/openbd-api v0.2.3
github.com/spiegel-im-spiegel/pa-api v0.4.1
github.com/spiegel-im-spiegel/pa-api v0.5.0
)
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ github.com/spiegel-im-spiegel/gocli v0.10.1 h1:XWyq4dKFp2xTjiH2P2bxPZyi0++4IHp9H
github.com/spiegel-im-spiegel/gocli v0.10.1/go.mod h1:9vRvly2giutJ2sAtQjrw570p9ulJA3twgKlurmnj12g=
github.com/spiegel-im-spiegel/openbd-api v0.2.3 h1:3iV0TEQmznT8jxoYFlVM1ZUd1vhi3owUhvbrevB/FvM=
github.com/spiegel-im-spiegel/openbd-api v0.2.3/go.mod h1:M258g8imPwlFkoJR+wlfVVsMZJIKJlKx46Fzf4d2dr8=
github.com/spiegel-im-spiegel/pa-api v0.4.1 h1:OD58th423L37Bm5T+Sc7hi66RXJuLgpvH5TZuvCQRfY=
github.com/spiegel-im-spiegel/pa-api v0.4.1/go.mod h1:2ugBqfnaqLnBtKd/rDmOqOhFum5thuXwojf8Uh98h+k=
github.com/spiegel-im-spiegel/pa-api v0.5.0 h1:erwGRBgoSy24NdVE+DPi7P3mViGz9Tz4TKkPkP+f3Ak=
github.com/spiegel-im-spiegel/pa-api v0.5.0/go.mod h1:2ugBqfnaqLnBtKd/rDmOqOhFum5thuXwojf8Uh98h+k=
github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
Expand Down

0 comments on commit 8d9c978

Please sign in to comment.