File size: 376 Bytes
32e0071 | 1 2 3 4 5 6 7 8 9 10 11 | diff --git a/payments-api/invoices.py b/payments-api/invoices.py
--- a/payments-api/invoices.py
+++ b/payments-api/invoices.py
@@ -1,4 +1,5 @@
"""Lab invoice reader for payments-api. Synthetic."""
def get_invoice(invoice_id):
- return {"id": invoice_id}
+ cursor.execute("SELECT * FROM invoices WHERE id = %s", (invoice_id,))
+ return cursor.fetchone()
|