Not yet. The structure is good, but two problems should be fixed before tomorrow: a failed export looks like a success, and every customer's email address goes into the logs. I also couldn't find the test file the docstring mentions (`test_export_job.py`), so nothing is tested from where I'm looking.

The code itself is easy to work with. Each step (fetch, write, upload) is its own small function, the query is parameterised, and the connection closes in `finally`. All the fixes below are small.

## Must fix before merge

**1. Failures are silent (`export_job.py:56-57`).** `except Exception` logs the error and then lets `run()` return normally, so the process exits with status 0.
- Example: the finance endpoint returns 500, or the database is down at 02:00.
- What happens now: one log line, cron sees success, finance gets no file and nobody is alerted.
- What should happen: the job exits non-zero so cron or monitoring flags it.
- Fix: keep the log line, then re-raise. Use `log.exception(...)` so the stack trace is kept too.

**2. Customer emails go into the logs (`export_job.py:52`).** `[row[1] for row in rows]` writes every customer email for the day into an INFO line. That's personal data in log storage, which usually has wider access and longer retention than the database.
- Fix: log only the count and the day.

**3. The upload has no timeout (`export_job.py:42`).** `requests.post` with no `timeout` will wait forever if the endpoint stops responding. The cron job then hangs and still never reports a failure.
- Fix: add something like `timeout=(10, 120)`.

**4. The tests aren't here.** The docstring says `test_export_job.py` covers "CSV header and one row", but that file isn't in this directory. If it's elsewhere, please point me to it. Either way, one row isn't enough coverage for a job that sends money figures to finance. At minimum it needs:
- an upload failure that makes the job fail visibly (would catch #1)
- a day with no invoices (header only)
- the amount formatting cases in #5
- the query window: an invoice paid at 23:59:59 is included and one at 00:00:00 the next day is not

## Should fix (soon, ideally in this PR)

**5. Amounts are floats (`export_job.py:37`).** `amount_cents / 100` gives a float:
- `1050` → `10.5` (expected `10.50`)
- `100` → `1.0` (expected `1.00`)
- For a currency without cents such as JPY, `500` → `5.0` (expected `500`)

If finance's import expects two decimals, these rows may break the import or be misread. Fix: format with `Decimal(amount_cents) / 100` and `f"{...:.2f}"`, and decide what to do with currencies that have no cents.

**6. Which hours count as "yesterday" isn't pinned down (`export_job.py:47`).** `date.today()` uses the server's local timezone. The comparison with `paid_at` uses the database session's timezone. If those differ (say the server is on UTC and the DB session is not), invoices near midnight land in the wrong day's file or in none. Fix: choose one timezone (probably UTC) and build timezone-aware start and end timestamps.

**7. The upload URL is read when the module is imported (`export_job.py:16`).** Importing the module fails with `KeyError` unless `FINANCE_UPLOAD_URL` is set, and that also makes tests harder to write. Fix: read it inside `run()` or `upload()`, as you already do for `DATABASE_URL`.

## Minor

- `logging` is never configured in `__main__`. As written, the INFO lines ("exporting…", "finished…") are dropped and only the error line reaches stderr. A `logging.basicConfig(level=logging.INFO)` fixes that.
- If the job is re-run for the same day, finance gets a second upload. That's worth a line in a runbook, or a check on whether the finance endpoint ignores duplicates.

Fixes 1–3 are a few lines each. With those plus the missing failure and amount tests, I'd be comfortable seeing this merged.

VERDICT: NOT READY
