sinks: add required isDraft/isValid fields on ActivityImport
This commit is contained in:
parent
1d23bf6ed7
commit
ba672a1633
1 changed files with 3 additions and 0 deletions
|
|
@ -155,6 +155,9 @@ class WealthfolioSink:
|
||||||
"activityType": str(a.activity_type),
|
"activityType": str(a.activity_type),
|
||||||
"currency": a.currency,
|
"currency": a.currency,
|
||||||
"accountId": a.account_id,
|
"accountId": a.account_id,
|
||||||
|
# Required booleans on ActivityImport (no defaults in Rust struct).
|
||||||
|
"isDraft": False,
|
||||||
|
"isValid": True,
|
||||||
}
|
}
|
||||||
if a.quantity is not None:
|
if a.quantity is not None:
|
||||||
row["quantity"] = format(a.quantity, "f")
|
row["quantity"] = format(a.quantity, "f")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue