Skip to content

Commit

Permalink
Add tags field to Artifact.Info
Browse files Browse the repository at this point in the history
  • Loading branch information
bitspill committed Mar 2, 2018
1 parent 3f05470 commit 4bbbd31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion messages/oip041-artifact.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func StoreOIP041Artifact(o Oip041, txid string, block int, dbtx *sql.Tx) error {
artCost := o.GetArtCost()
pubFeeUSD := o.GetPubFeeUSD(dbtx)

_, err = stmt.Exec(1, block, s, "", // ToDo: Fix tag parsing - strings.Join(o.Artifact.Info.ExtraInfo.Tags, ","),
_, err = stmt.Exec(1, block, s, o.Artifact.Info.Tags,
o.Artifact.Timestamp, o.Artifact.Info.Title, txid, o.Artifact.Type,
o.Artifact.Info.Year, o.Artifact.Publisher, artCost, o.artSize, pubFeeUSD, o.Artifact.Info.NSFW)
if err != nil {
Expand Down
1 change: 1 addition & 0 deletions messages/oip041-types.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ type Oip041Artifact struct {
type Oip041Info struct {
Title string `json:"title"`
Description string `json:"description"`
Tags string `json:"tags"`
Year int `json:"year"`
NSFW bool `json:"nsfw"`
ExtraInfo json.RawMessage `json:"extraInfo"`
Expand Down

0 comments on commit 4bbbd31

Please sign in to comment.