summaryrefslogtreecommitdiff
path: root/ledger_process.py
diff options
context:
space:
mode:
authoruvok2025-04-18 12:03:05 +0200
committeruvok2025-04-18 12:03:05 +0200
commit00965b3980a366356c3993094fb9be86481819e8 (patch)
tree865443e7ae504d4c8eed1c2ac64b73f157bd8c21 /ledger_process.py
parent7502eb7ce85593dd66db524f4583f5b173501bf6 (diff)
Add assert (dupe, but anyway)
Diffstat (limited to 'ledger_process.py')
-rw-r--r--ledger_process.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ledger_process.py b/ledger_process.py
index d5592a2..1c9d5f7 100644
--- a/ledger_process.py
+++ b/ledger_process.py
@@ -37,6 +37,7 @@ class LedgerProcess:
# Group trades by refid
if action.type == "trade":
+ assert len(actions) == 2
self._process_trade(refid, actions)
elif action.type == "deposit" and action.asset != "EUR":