Skip to content

Commit

Permalink
Just use a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Murphy committed Nov 17, 2023
1 parent 3131064 commit c568295
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions posthog/api/decide.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,7 @@ def get_decide(request: HttpRequest):
response["analytics"] = {"endpoint": settings.NEW_ANALYTICS_CAPTURE_ENDPOINT}

if settings.ELEMENT_CHAIN_AS_STRING_TEAMS and str(team.id) in settings.ELEMENT_CHAIN_AS_STRING_TEAMS:
response["analytics"] = {
"elementsChainAsString": True,
}
response["elementsChainAsString"] = True

if team.session_recording_opt_in and (
on_permitted_recording_domain(team, request) or not team.recording_domains
Expand Down

0 comments on commit c568295

Please sign in to comment.