diff --git a/device-detection/fiftyone_devicedetection_examples/src/fiftyone_devicedetection_examples/cloud/gettingstarted_web/app.py b/device-detection/fiftyone_devicedetection_examples/src/fiftyone_devicedetection_examples/cloud/gettingstarted_web/app.py index 69261224..0e59af82 100644 --- a/device-detection/fiftyone_devicedetection_examples/src/fiftyone_devicedetection_examples/cloud/gettingstarted_web/app.py +++ b/device-detection/fiftyone_devicedetection_examples/src/fiftyone_devicedetection_examples/cloud/gettingstarted_web/app.py @@ -157,9 +157,19 @@ def build(self, resource_key, logger): if cloud_endpoint: pipeline_settings["cloud_endpoint"] = cloud_endpoint - GettingStartedWeb.pipeline = DeviceDetectionCloudPipelineBuilder( - **pipeline_settings).add_logger(logger).build() - + builder = DeviceDetectionCloudPipelineBuilder(**pipeline_settings) + + # The builder adds the browserderived engine, which this page leaves + # out. The browser tests count as done only once the page holds a + # sealed HumanConfidence, and the package never sends that to the + # page. With the browserderived engine, the client script would run + # them again and call the JSON endpoint on every page view. + builder.flow_elements = [ + element for element in builder.flow_elements + if element.datakey != "browserderived"] + + GettingStartedWeb.pipeline = builder.add_logger(logger).build() + return self def run(self):