fix(ops): atm-transactions queried fee_percent, which no longer exists

The column was renamed to fee_fraction (schema_version 13), so the main
query has been failing outright with "no such column: t.fee_percent" —
the tool only ever worked in --summary and --inventory mode. Caught
while reconciling sintra's cassettes, where listing transactions was
the obvious first step and didn't work.

Refs #40
This commit is contained in:
Padreug 2026-10-09 09:44:02 +02:00
commit 4d6ea8f163

View file

@ -141,7 +141,7 @@ sql "SELECT
t.fiat_cents / 100 AS 'Fiat',
t.sats AS 'Sats',
t.fee_sats AS 'Fee Sats',
printf('%.1f%%', t.fee_percent * 100) AS 'Fee %',
printf('%.1f%%', t.fee_fraction * 100) AS 'Fee %',
CASE WHEN t.exchange_rate > 0 THEN printf('%.0f', t.exchange_rate) ELSE '-' END AS 'Rate',
datetime(t.created_at / 1000, 'unixepoch') AS 'Time (UTC)',
group_concat('Q' || tb.denomination || 'x' || tb.count) AS 'Bills'