mirror of
https://github.com/openai/codex-security.git
synced 2026-11-21 02:12:29 +08:00
* feat(examples): add synthetic security workflow benchmark * feat(examples): add deployed VPC reachability benchmark --------- Co-authored-by: Neha Rungta <rungta@amazon.com>
12 lines
341 B
Python
12 lines
341 B
Python
"""Order reports for the signed-in account."""
|
|
|
|
|
|
def orders_by_region(database, tenant_id, region):
|
|
query = f"""
|
|
SELECT id, tenant_id, region, description, amount_cents
|
|
FROM orders
|
|
WHERE tenant_id = ? AND region = '{region}'
|
|
ORDER BY id
|
|
"""
|
|
return database.execute(query, (tenant_id,)).fetchall()
|