Skip to content

Commit

Permalink
Merge pull request #3319 from unicef/staging
Browse files Browse the repository at this point in the history
[hotfix] Staging
  • Loading branch information
domdinicola authored Jun 28, 2022
2 parents 108ceef + b9cbbfb commit 8b1d720
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/etools/__init__.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = __version__ = '9.12'
VERSION = __version__ = '9.12.1'
NAME = 'eTools'
7 changes: 7 additions & 0 deletions src/etools/applications/partners/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,13 @@ def min_req_spot_checks(self):
return 0
if self.type_of_assessment == 'Low Risk Assumed' or reported_cy <= PartnerOrganization.CT_CP_AUDIT_TRIGGER_LEVEL:
return 0
try:
self.planned_engagement
except PlannedEngagement.DoesNotExist:
pass
else:
if self.planned_engagement.scheduled_audit:
return 0
return 1

@cached_property
Expand Down

0 comments on commit 8b1d720

Please sign in to comment.