Skip to content

Commit

Permalink
fix(page): fix order by when page is zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Nov 24, 2019
1 parent 011163f commit 82ddee3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexd/index/drivers/alchemy.py
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ def ids(
if urls_metadata or negate_params:
query = query.distinct(IndexRecord.did)

if page:
if page is not None:
# when we're paginating, order by updated date so newly added stuff is
# at the end (reduce risk that a new records ends up in a page
# earlier on) and allows for some logic to check for newly added records
Expand Down

0 comments on commit 82ddee3

Please sign in to comment.