Skip to content

Commit

Permalink
Add compatibility with python detail value
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuznet committed Jan 18, 2021
1 parent 38329d9 commit 7f7c0cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dbs/datasets.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ func (API) Datasets(params Record, w http.ResponseWriter) (int64, error) {

// parse detail arugment
detail, _ := getSingleValue(params, "detail")
if detail == "1" { // for backward compatibility with Python detail=1 and detail=True
detail = "true"
}
if strings.ToLower(detail) == "true" {
tmpl["Detail"] = true
}
Expand Down

0 comments on commit 7f7c0cd

Please sign in to comment.