v0.0.360 bf
All checks were successful
Build Docker and Deploy / Run goext test-suite (push) Successful in 1m26s

This commit is contained in:
Mike Schwörer 2024-01-06 01:31:07 +01:00
parent 8757643399
commit 5fba7e0e2f
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF
2 changed files with 5 additions and 2 deletions

View File

@ -1,5 +1,5 @@
package goext 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"

View File

@ -12,5 +12,8 @@ func CalcPaginationTotalPages(totalItems int, limit int) int {
if totalItems == 0 { if totalItems == 0 {
return 0 return 0
} }
if limit == 0 {
return 0
}
return 1 + (totalItems-1)/limit return 1 + (totalItems-1)/limit
} }