def __call__(self, request, requestArgs, **kwargs): if 'startDate' not in requestArgs: requestArgs['startDate'] = bftimezone.getDateTimeNow() - timedelta(days=1) if 'endDate' not in requestArgs: requestArgs['endDate'] = bftimezone.getDateTimeNow()
def __call__(self, request, requestArgs, **kwargs): if 'placedDateFrom' not in requestArgs: requestArgs['placedDateFrom'] = bftimezone.getDateTimeNow() - timedelta(days=1) if 'placedDateTo' not in requestArgs: requestArgs['placedDateTo'] = bftimezone.getDateTimeNow()