コード例 #1
0
ファイル: bfprocessors.py プロジェクト: cfredericks/python
    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()
コード例 #2
0
ファイル: bfprocessors.py プロジェクト: cfredericks/python
    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()