Files
marqdo/tests/applications/invoice/producer.py
cflmyandCursor 8f1010f967 Ship oracle journal values, bytecode/frontend hardening, and replay-policy Lean.
Host exposes oracle journals as language values with refuse/copy gates; bytecode and foreign session paths get modularized; applications and verification replay-policy sources land with Lake builds ignored.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-06 15:04:27 +08:00

9 lines
279 B
Python

seen = set()
bridge = []
for row in data:
if row['status'] == 'posted' and row['id'] not in seen:
seen.add(row['id'])
bridge.append({k: row[k] for k in ('id', 'region', 'units', 'cents', 'discount')})
bridge.sort(key=lambda r: r['id'].encode('utf-8'))
bridge