From e171792b0e7314dd83063d670e3772795b873c1f Mon Sep 17 00:00:00 2001 From: Sudha Kumar Date: Wed, 18 Dec 2024 14:06:22 -0800 Subject: [PATCH] Updated lookup_latest_cog --- backend/support/cog_over.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/support/cog_over.py b/backend/support/cog_over.py index aa6138390..699d22d2b 100644 --- a/backend/support/cog_over.py +++ b/backend/support/cog_over.py @@ -166,10 +166,9 @@ def lookup_latest_cog(ein, uei, dbkey, base_year, audit_year): ) other_year_query_section = Q(auditee_ein=ein) & Q(auditee_uei=uei) + query_subsection = other_year_query_section if (int(base_year) == FIRST_BASELINE_YEAR) and (dbkey is not None): query_subsection = first_base_year_query_section - else: - query_subsection = other_year_query_section try: cognizant_agency = (