| diff --git a/ledger-api/invoices.py b/ledger-api/invoices.py | |
| --- a/ledger-api/invoices.py | |
| +++ b/ledger-api/invoices.py | |
| """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() | |