Skip to content

Commit

Permalink
Fix search
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Sheiko committed Aug 23, 2022
1 parent dde976d commit fb5b701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/scraper/scraper.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,12 @@ func (scraper *Scraper) initialRequest() ([]app.App, string, error) {

apps := scraper.parseResult(data["ds:3"], "0.1.0.22.0", "0.1.0.21.0")
if len(apps) == 0 {
apps = scraper.parseResult(data["ds:4"], "0.1.0.22.0", "0.1.0.21.0")
apps = scraper.parseResult(data["ds:4"], "0.1.0.22.0", "0.1.0.21.0", "0.1.3.22.0")
}

token := util.GetJSONValue(data["ds:3"], "0.1.0.22.1.3.1", "0.1.0.21.1.3.1")
if token == "" {
token = util.GetJSONValue(data["ds:4"], "0.1.2.22.1.3.1")
token = util.GetJSONValue(data["ds:4"], "0.1.2.22.1.3.1", "0.1.3.22.1.3.1")
}

// return results with next token
Expand Down

0 comments on commit fb5b701

Please sign in to comment.