From 52855bc7620c8e4965029faebca9decffcd4e94b Mon Sep 17 00:00:00 2001 From: Manuel Mendez <708570+mmlb@users.noreply.github.com> Date: Fri, 19 Sep 2025 03:45:56 -0400 Subject: [PATCH] Fix capture example feature-flags-code-python.mdx (#12842) --- .../_snippets/feature-flags-code-python.mdx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contents/docs/integrate/feature-flags-code/_snippets/feature-flags-code-python.mdx b/contents/docs/integrate/feature-flags-code/_snippets/feature-flags-code-python.mdx index 2c901c458..d92cde53c 100644 --- a/contents/docs/integrate/feature-flags-code/_snippets/feature-flags-code-python.mdx +++ b/contents/docs/integrate/feature-flags-code/_snippets/feature-flags-code-python.mdx @@ -36,11 +36,11 @@ There are two methods you can use to include feature flag information in your ev ```python posthog.capture( - distinct_id="distinct_id_of_the_user" - 'event_name', - { - '$feature/feature-flag-key': 'variant-key' # replace feature-flag-key with your flag key. Replace 'variant-key' with the key of your variant - } + "event_name", + distinct_id="distinct_id_of_the_user", + properties={ + "$feature/feature-flag-key": "variant-key" # replace feature-flag-key with your flag key. Replace 'variant-key' with the key of your variant + }, ) ```