fix order of next/prev header links (#564)

This commit is contained in:
Christof Dorner 2023-05-02 16:57:58 +00:00 committed by GitHub
parent ac54c7ff81
commit 7331591432
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -76,8 +76,8 @@ class PaginatingApiResponse(ApiResponse[list[TI]]):
parts = [ parts = [
entry entry
for entry in [ for entry in [
self.get_part(0, "min_id", "prev"),
self.get_part(-1, "max_id", "next"), self.get_part(-1, "max_id", "next"),
self.get_part(0, "min_id", "prev"),
] ]
if entry if entry
] ]