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