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:
2024-01-06 01:31:07 +01:00
parent 8757643399
commit 5fba7e0e2f
2 changed files with 5 additions and 2 deletions

View File

@@ -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
}