Skip to content

Commit

Permalink
pass user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
sir-sigurd committed Nov 13, 2024
1 parent 854e20d commit c007428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lambdas/indexer/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def select_package_stats(bucket, manifest_key) -> Optional[dict]:
"""
resp = lambda_.invoke(

Check warning on line 500 in lambdas/indexer/index.py

View check run for this annotation

Codecov / codecov/patch/informational

lambdas/indexer/index.py#L500

Added line #L500 was not covered by tests
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()

Check warning on line 505 in lambdas/indexer/index.py

View check run for this annotation

Codecov / codecov/patch/informational

lambdas/indexer/index.py#L505

Added line #L505 was not covered by tests
Expand Down

0 comments on commit c007428

Please sign in to comment.