From c0074288d402f6eaa7cf197d9f20ecaf4174c68d Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Wed, 13 Nov 2024 22:25:07 +0100 Subject: [PATCH] pass user agent --- lambdas/indexer/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lambdas/indexer/index.py b/lambdas/indexer/index.py index f4e7f888ffb..a315c53197b 100644 --- a/lambdas/indexer/index.py +++ b/lambdas/indexer/index.py @@ -499,7 +499,7 @@ def select_package_stats(bucket, manifest_key) -> Optional[dict]: """ resp = lambda_.invoke( FunctionName=DUCKDB_SELECT_LAMBDA_ARN, - Payload=json.dumps({"query": q}), + Payload=json.dumps({"query": q, "user_agent": f"DuckDB Select {USER_AGENT_EXTRA}"}), ) payload = resp["Payload"].read()