Skip to content

Commit

Permalink
fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Mar 22, 2023
1 parent c175cee commit 4f7f902
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions services/combined.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,9 @@ func (LocalAPIs) Site4DatasetPct(dasquery dasql.DASQuery) []mongo.DASRecord {
// DBS part, find total number of blocks and files for given dataset
dataset := spec["dataset"].(string)
api := "filesummaries"
furl := fmt.Sprintf("%s/%s?dataset=%s", DBSUrl(inst), api, dataset)
if strings.HasPrefix(inst, "prod") {
furl := fmt.Sprintf("%s/%s?dataset=%s&validFileOnly=1", DBSUrl(inst), api, dataset)
} else {
furl := fmt.Sprintf("%s/%s?dataset=%s", DBSUrl(inst), api, dataset)
furl = fmt.Sprintf("%s/%s?dataset=%s&validFileOnly=1", DBSUrl(inst), api, dataset)
}
client := utils.HttpClient()
resp := utils.FetchResponse(client, furl, "") // "" specify optional args
Expand Down

0 comments on commit 4f7f902

Please sign in to comment.