Increasing delta to 14 days to catch shipments not in 'Shipped' status for a prolonged period of time
This commit is contained in:
parent
b496539d82
commit
9b86936a49
@ -1,7 +1,7 @@
|
||||
from datetime import datetime, timedelta
|
||||
from log import log
|
||||
|
||||
def isInboundShipmentPlanWithinSpecifiedDelta(inboundShipmentPlanCreationTime, delta=360):
|
||||
def isInboundShipmentPlanWithinSpecifiedDelta(inboundShipmentPlanCreationTime, delta=20160):
|
||||
currentTime = datetime.now()
|
||||
inboundShipmentPlanTime = datetime.strptime(inboundShipmentPlanCreationTime, '%Y-%m-%dT%H:%M:%SZ')
|
||||
timeDelta = currentTime - inboundShipmentPlanTime
|
||||
|
Loading…
Reference in New Issue
Block a user