Fix capture example feature-flags-code-python.mdx (#12842)

This commit is contained in:
Manuel Mendez
2025-09-19 03:45:56 -04:00
committed by GitHub
parent 9a56a8eacc
commit 52855bc762

View File

@@ -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
},
)
```