1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-12-23 05:02:22 +01:00
dspace-statistics-api/dspace_statistics_api
Alan Orth 4f8cd1097b
Rework paging
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.
2020-12-27 12:22:07 +02:00
..
docs Adjust docs at root 2020-12-23 16:12:50 +02:00
__init__.py Refactor project structure 2018-10-28 11:14:21 +02:00
app.py Rework paging 2020-12-27 12:22:07 +02:00
config.py Re-work Swagger UI configuration 2020-12-23 13:25:17 +02:00
database.py dspace_statistics_api: Use f-strings instead of format() 2020-03-02 11:24:29 +02:00
indexer.py Rework paging 2020-12-27 12:22:07 +02:00
stats.py dspace_statistics_api/stats.py: Use -isBot:true 2020-12-20 16:56:03 +02:00
util.py dspace_statistics_api/util.py: Add vim modeline 2020-12-20 16:31:52 +02:00