mixpanel-utils icon indicating copy to clipboard operation
mixpanel-utils copied to clipboard

fix: Amended input to be correct structure

Open ardens-jw opened this issue 1 year ago • 0 comments

Currently - when providing a list of profile ids for operations, I received the following error:

    params["$distinct_id"] = profile["$distinct_id"]
                             ~~~~~~~^^^^^^^^^^^^^^^^
TypeError: 'int' object is not subscriptable

Cause is because the _prep_params_for_profile method is expecting the profile argument to be "A Mixpanel People profile dict" - as taken from the documentation.

I've provided my current fix in this PR.

ardens-jw avatar Sep 08 '23 07:09 ardens-jw