Increasing delta to 14 days to catch shipments not in 'Shipped' status for a prolonged period of time

This commit is contained in:
Dom 2024-08-21 21:42:32 +01:00
parent b496539d82
commit 9b86936a49

View File

@ -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