mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2025-03-06 23:37:23 +01:00
The "totalPages" value in our response is calculated incorrectly. Instead of casting to int and rounding, we should rather round up to the next integer with math.ceil. This is a more correct way to get the value. Also update the indexer to use the same logic, although there the values are printed with +1 so they are more readable.