Skip to content

Commit

Permalink
bug fix completed. subquery implemented to gather latest foioipcreque…
Browse files Browse the repository at this point in the history
…st and then filter iout oipcs with outcome id's prsent from search dashboard. duplicate bug fixed
  • Loading branch information
Aman-Hundal committed Jan 2, 2024
1 parent 6c7f7fb commit 54bd3e2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ def getrequestssubquery(cls, groups, filterfields, keyword, additionalfilter, us
subquery_oipc_nooutcomes_sql = """
SELECT distinct on (foiministryrequest_id) foiministryrequest_id, foiministryrequestversion_id, outcomeid
FROM "FOIRequestOIPC" fo
WHERE outcomeid is null order by foiministryrequest_id, foiministryrequestversion_id desc
order by foiministryrequest_id, foiministryrequestversion_id desc
"""
rs_subquery_oipc_nooutcomes_sql = text(subquery_oipc_nooutcomes_sql).columns(FOIRequestOIPC.foiministryrequest_id, FOIRequestOIPC.foiministryrequestversion_id, FOIRequestOIPC.outcomeid).alias("oipcnoneoutcomes")
joincondition_oipc = [
Expand Down

0 comments on commit 54bd3e2

Please sign in to comment.