diff options
Diffstat (limited to 'python/collateral')
| -rw-r--r-- | python/collateral/cs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/python/collateral/cs.py b/python/collateral/cs.py index 8e40dd2f..0246e507 100644 --- a/python/collateral/cs.py +++ b/python/collateral/cs.py @@ -62,7 +62,9 @@ def get_collateral(d: datetime.date, fund): if e.text == "Cash USD (US Dollar)": next(g) value = next(g).text - collat += float(value.strip().replace(",", "")) + collat += float( + value.strip().replace(",", "").replace("(", "-").replace(")", "") + ) break return collat |
