1. Dusty Phillips
  2. python-astrid
Issue #2 new

array values aren't formatted right

created an issue

Passing tags=['a','b'] needs to make output like tags[]=a&tags[]=b

Use something like this:

        arrayedParams = []
        for k,v in params.items():
            if isinstance(v, list):
                arrayedParams.extend([(k+"[]", elem) for elem in v])
                arrayedParams.append((k, v))
            url = ... % (..., urlencode(arrayedParams))

Comments (0)

  1. Log in to comment