aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/utils.py')
-rw-r--r--python/Dawn/utils.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/python/Dawn/utils.py b/python/Dawn/utils.py
index 731d6dbb..3dd0d1c5 100644
--- a/python/Dawn/utils.py
+++ b/python/Dawn/utils.py
@@ -12,9 +12,13 @@ def bump_rev(filename):
def simple_serialize(obj, **kwargs):
d = {c.name: getattr(obj, c.name) for c in obj.__table__.columns}
# add data from foreign relationship
- if obj.__table__.name == 'wires':
- d.update({'Counterparty': obj.account.counterparty,
- 'cashaccount': obj.account.cash_account,
- 'custodian': obj.account.custodian})
+ if obj.__table__.name == "wires":
+ d.update(
+ {
+ "Counterparty": obj.account.counterparty,
+ "cashaccount": obj.account.cash_account,
+ "custodian": obj.account.custodian,
+ }
+ )
d.update(kwargs)
return dumps(d)