v0.0.360 bf
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m26s
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m26s
This commit is contained in:
parent
8757643399
commit
5fba7e0e2f
@ -1,5 +1,5 @@
|
||||
package goext
|
||||
|
||||
const GoextVersion = "0.0.359"
|
||||
const GoextVersion = "0.0.360"
|
||||
|
||||
const GoextVersionTimestamp = "2024-01-05T16:55:53+0100"
|
||||
const GoextVersionTimestamp = "2024-01-06T01:31:07+0100"
|
||||
|
@ -12,5 +12,8 @@ func CalcPaginationTotalPages(totalItems int, limit int) int {
|
||||
if totalItems == 0 {
|
||||
return 0
|
||||
}
|
||||
if limit == 0 {
|
||||
return 0
|
||||
}
|
||||
return 1 + (totalItems-1)/limit
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user