Skip to content

Commit

Permalink
Merge pull request #4727 from bcgov/dev-DV-4702
Browse files Browse the repository at this point in the history
Dev dv 4702
  • Loading branch information
divyav-aot authored Nov 15, 2023
2 parents e75e08f + 3718696 commit df158d5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions request-management-api/request_api/services/requestservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,15 @@ def saverequest(
)

def saverequestversion(self, foirequestschema, foirequestid, ministryid, userid):
nextstatename = FOIRequestStatus.getrequeststatusname(
nextstate = FOIRequestStatus.getrequeststatusname(
foirequestschema["requeststatusid"]
)
nextstatename = (
nextstate.get("name")
if isinstance(nextstatename, dict)
and nextstatename.get("name") not in (None, "")
else ""
)
rev_foirequestschema = self.updateduedate(
foirequestid,
ministryid,
Expand Down Expand Up @@ -281,7 +287,7 @@ def __skipduedatecalculation(
currentstatus not in (None, "")
and currentstatus == StateName.onhold.value
and nextstatename not in (None, "")
and currentstatus == nextstatename["name"]
and currentstatus == nextstatename
):
return True
if previousoffholddate not in (None, ""):
Expand Down

0 comments on commit df158d5

Please sign in to comment.