Skip to content

Commit

Permalink
Merge pull request #1621 from GSA-TTS/tt/1600d
Browse files Browse the repository at this point in the history
Give value to is_public
  • Loading branch information
pluribus-tony authored Jul 27, 2023
2 parents bcd6b50 + 5b89c67 commit e9df02b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/audit/etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def load_general(self):
total_fed_expenditures=None, # TODO: Where does this come from?
type_report_major_program=None, # TODO: Where does this come from?
type_audit_code="UG",
is_public=None, # Should be coming from SingleAuditChecklist
is_public=self.single_audit_checklist.is_public,
data_source="G-FAC",
)
general.save()
Expand Down
4 changes: 4 additions & 0 deletions backend/audit/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,6 +430,10 @@ def is_auditor_certified(self):
def is_submitted(self):
return self.submission_status in [SingleAuditChecklist.STATUS.SUBMITTED]

@property
def is_public(self):
return self.general_information["user_provided_organization_type"] != "tribal"

def get_transition_date(self, status):
index = self.transition_name.index(status)
if index >= 0:
Expand Down

0 comments on commit e9df02b

Please sign in to comment.