Skip to content

Commit

Permalink
Add ORDER BY data ->> 'date' DESC to download_package_from_ocid, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Sep 11, 2020
1 parent f8be196 commit ec6d586
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ocdskingfishercolab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ def download_package_from_ocid(collection_id, ocid, package_type):
FROM data
JOIN release ON data.id = release.data_id
WHERE collection_id = %(collection_id)s AND ocid = %(ocid)s
ORDER BY data ->> 'date' DESC
"""

params = {'ocid': ocid, 'collection_id': collection_id}
Expand Down

0 comments on commit ec6d586

Please sign in to comment.