Skip to content

Commit

Permalink
Merge pull request #1283 from bcgov/test-marshal-NK-FOIMOD-3194
Browse files Browse the repository at this point in the history
sort redactionlayerid by id as well as created_at because sometimes c…
  • Loading branch information
nkan-aot2 authored Jan 25, 2025
2 parents 94172ad + 479c334 commit 93a777d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ def getrecentredactionlayerid(cls, ministryrequestid):
select redactionlayerid
from "DocumentPageflags"
where foiministryrequestid = %s::integer
order by created_at desc limit 1;
order by created_at, id desc limit 1;
'''
cursor.execute(query, (ministryrequestid,))
layerid = cursor.fetchone()
Expand Down

0 comments on commit 93a777d

Please sign in to comment.