aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/views.py')
-rw-r--r--python/Dawn/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/Dawn/views.py b/python/Dawn/views.py
index 10a9eaa0..5f479878 100644
--- a/python/Dawn/views.py
+++ b/python/Dawn/views.py
@@ -177,10 +177,12 @@ def save_ticket(trade, old_ticket_name):
def split_direction(g, direction):
if direction == "outgoing":
- return [{"folder": cf.folder, "amount": -cf.amount, "code": cf.code}
+ return [{"folder": cf.folder, "amount": -cf.amount, "code": cf.code,
+ "currency": cf.currency, "action": cf.action}
for cf in g if cf.amount < 0]
elif direction == "incoming":
- return [{"folder": cf.folder, "amount": cf.amount, "code": cf.code}
+ return [{"folder": cf.folder, "amount": cf.amount, "code": cf.code,
+ "currency": cf.currency, "action": cf.action}
for cf in g if cf.amount > 0]
else:
raise ValueError("direction can be one of 'outgoing' or 'incoming'")