1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-10-18 14:54:16 +02:00

Compare commits

..

No commits in common. "f3a0e3a671f4e85d9b7c4db161ffc666cb85e533" and "8b924cf45089a27f05fb6cb0e62442cb14bbcb02" have entirely different histories.

2 changed files with 1 additions and 6 deletions

View File

@ -4,11 +4,6 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## Unreleased
### Changed
- Add ORDER BY to /items resource to make sure results are returned
deterministically
## [1.3.2] - 2020-11-18 ## [1.3.2] - 2020-11-18
### Fixed ### Fixed
- Minor issue with limit parameter (> 0) - Minor issue with limit parameter (> 0)

View File

@ -31,7 +31,7 @@ class AllItemsResource:
# get statistics and use limit and offset to page through results # get statistics and use limit and offset to page through results
cursor.execute( cursor.execute(
"SELECT id, views, downloads FROM items ORDER BY id LIMIT %s OFFSET %s", "SELECT id, views, downloads FROM items LIMIT %s OFFSET %s",
[limit, offset], [limit, offset],
) )