There is an extra "a" at the end of the key Is: if direction: request_parameters['directiona'] = direction Should be: if direction: request_parameters['direction'] = direction
There is an extra "a" at the end of the key
Is:
if direction:
request_parameters['directiona'] = direction
Should be:
if direction:
request_parameters['direction'] = direction