Download data/diffs/s01.diff from AriaAICompany/code-review-lab: direct link, hf CLI and curl.
- Browser
- Download file 388 Bytes
-
https://huggingface.co/datasets/AriaAICompany/code-review-lab/resolve/main/data/diffs/s01.diff
- Command line
-
hf download hf://datasets/AriaAICompany/code-review-lab/data/diffs/s01.diff
-
curl -L -o s01.diff https://huggingface.co/datasets/AriaAICompany/code-review-lab/resolve/main/data/diffs/s01.diff
388 Bytes
| 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() | |