Skip to content

Commit

Permalink
Sort order was not right. Fixed it now, I think.
Browse files Browse the repository at this point in the history
  • Loading branch information
tbooth committed Nov 1, 2024
1 parent 0cd8132 commit 0d4fd84
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion illuminatus/ragic.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def use_ragic():
'Run ID': "1000037",
'Run QC Report': "1000048",
'Last Update': "109",
'_date_field': "109",
'_lane_keys' : [ "_subtable_1000015",
"_subtable_1000034",
"_subtable_1000035",
Expand Down Expand Up @@ -208,8 +209,8 @@ def list_entries(self, sheet, query=None, subtables=True, latest_n=None):

if latest_n:
# Used to obtain only the N most recent records
params['reverse'] = 'false' # apparently
params['limit'] = str(latest_n)
params['order'] = f"{sheet_info['_date_field']},DESC"

return self._get_json(listing_page, params)

Expand Down

0 comments on commit 0d4fd84

Please sign in to comment.