Skip to content

Commit

Permalink
Updated lookup_latest_cog
Browse files Browse the repository at this point in the history
  • Loading branch information
gsa-suk committed Dec 18, 2024
1 parent d760c7b commit e171792
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions backend/support/cog_over.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand Down

0 comments on commit e171792

Please sign in to comment.