fix minor oversight
This commit is contained in:
parent
cccfe6fa1a
commit
ced920ceb9
|
@ -136,7 +136,7 @@ func APIList(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
|
||||
if pageParam != "" || resolveItemName != "" {
|
||||
response["total_pages"] = len(pages) + 1 // We add 1 to the count because arrays are zero-indexed.
|
||||
response["total_pages"] = len(pages) // + 1 // We add 1 to the count because arrays are zero-indexed.
|
||||
}
|
||||
|
||||
response["item"] = item
|
||||
|
|
Loading…
Reference in New Issue