Skip to content

Commit

Permalink
Remove the fake vendors from the search interface for now; we'll add
Browse files Browse the repository at this point in the history
vendor support later.
  • Loading branch information
caoimhechaos committed Jan 3, 2014
1 parent 770ee81 commit d976d17
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions productsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,25 +323,25 @@ func (self *ProductSearchAPI) ServeHTTP(w http.ResponseWriter, req *http.Request
}

// TODO(caoimhe): stub
r = new(SearchResult)
r.Name = "ACME Inc."
r.Uuid = "/vendor/acme"
res.Vendors = append(res.Vendors, r)

r = new(SearchResult)
r.Name = "Starship Factory"
r.Uuid = "/vendor/starshipfactory"
res.Vendors = append(res.Vendors, r)

r = new(SearchResult)
r.Name = "RaumZeitLabor e.V."
r.Uuid = "/vendor/rzl"
res.Vendors = append(res.Vendors, r)

r = new(SearchResult)
r.Name = "Doctor in the TARDIS"
r.Uuid = "/vendor/doctor"
res.Vendors = append(res.Vendors, r)
// r = new(SearchResult)
// r.Name = "ACME Inc."
// r.Uuid = "/vendor/acme"
// res.Vendors = append(res.Vendors, r)

// r = new(SearchResult)
// r.Name = "Starship Factory"
// r.Uuid = "/vendor/starshipfactory"
// res.Vendors = append(res.Vendors, r)

// r = new(SearchResult)
// r.Name = "RaumZeitLabor e.V."
// r.Uuid = "/vendor/rzl"
// res.Vendors = append(res.Vendors, r)

// r = new(SearchResult)
// r.Name = "Doctor in the TARDIS"
// r.Uuid = "/vendor/doctor"
// res.Vendors = append(res.Vendors, r)
}

rawdata, err = json.Marshal(res)
Expand Down

0 comments on commit d976d17

Please sign in to comment.