0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-12-01 04:12:23 +01:00

Send Experiment variants used for calculations with API response (#8597)

This commit is contained in:
Neil Kakkar 2022-02-15 11:48:41 +00:00 committed by GitHub
parent c5fd66a5f2
commit 286d8844d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -92,6 +92,7 @@ class ClickhouseFunnelExperimentResult:
"filters": self.funnel._filter.to_dict(),
"significance_code": significance_code,
"expected_loss": loss,
"variants": [dataclasses.asdict(variant) for variant in [control_variant, *test_variants]],
}
def get_variants(self, funnel_results):

View File

@ -119,6 +119,7 @@ class ClickhouseTrendExperimentResult:
"filters": self.query_filter.to_dict(),
"significance_code": significance_code,
"p_value": p_value,
"variants": [dataclasses.asdict(variant) for variant in [control_variant, *test_variants]],
}
def get_variants(self, insight_results, exposure_results):