1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-25 23:58:18 +01: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/),
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
### Fixed
- 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
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],
)