diff options
Diffstat (limited to 'python/citco_ops')
| -rw-r--r-- | python/citco_ops/bowdst.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/citco_ops/bowdst.py b/python/citco_ops/bowdst.py index 0c4a6506..081059b4 100644 --- a/python/citco_ops/bowdst.py +++ b/python/citco_ops/bowdst.py @@ -19,7 +19,9 @@ class Wire(Deal, table_name="custodian_wires", deal_type="custodian_wires"): unique_ref: str def __init_subclass__(cls, fund, **kwargs): - cls._sql_insert += " ON CONFLICT (unique_ref) DO NOTHING" + cls._sql_insert.replace( + "RETURNING *", "ON CONFLICT (unique_ref) DO NOTHING RETURNING *" + ) cls.fund = fund def __post_init__(self): |
