@serviced
    def get(self, request, service):
        '''
        Returns the current authorization token for the provided address.
        '''
        # default duration...
        # 3 days in seconds
        duration = 3 * 24 * 60 * 60

        if request.query_params in 'duration':
            duration = int(request.query_params['duration'])

        address = get_client_ip(request)

        stuff = service.requestToken(address, duration)

        data = {
            'token': stuff.token,
            'interval': stuff.interval,
            'valid_until': stuff.valid_until,
            'address': address,
        }

        return Response(data, status=status.HTTP_200_OK)
dataset/ETHPy150Open facebook/augmented-traffic-control/atc/django-atc-api/atc_api/views.py/TokenApi.get/swapped operands of `in`