Commit 655e8178 authored by Quentin Defenouillere's avatar Quentin Defenouillere Committed by ntome

[cmes/cices] Deleted porfolio_share calculation

The investment portfolio_shares were calculated and yielded values such
as "0.3015069237035025794189519414", usually we do not scrape it if it
is not explicitly displayed on the website.
parent 7e5f01a4
......@@ -144,9 +144,6 @@ class AccountsPage(LoggedPage, HTMLPage):
if elem_diff is not None:
inv.diff_ratio = Eval(lambda x: x / 100,
MyDecimal(Regexp(CleanText('.//td[3]'), r'([+-]?[\d\s]+[\d,]+)\s*%')))(row)
if account.balance != 0:
inv.portfolio_share = inv.valuation / account.balance
yield inv
def iter_pocket(self, inv):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment