Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
177
Issues
177
List
Boards
Labels
Milestones
Merge Requests
48
Merge Requests
48
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weboob
weboob
Commits
53a645e9
Commit
53a645e9
authored
Feb 03, 2017
by
Vincent Ardisson
Committed by
Romain Bignon
Feb 11, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[spirica] 0% portfolio_share is different than NotAvailable
parent
b340e694
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/spirica/pages.py
modules/spirica/pages.py
+2
-2
No files found.
modules/spirica/pages.py
View file @
53a645e9
...
...
@@ -26,7 +26,7 @@ from weboob.browser.filters.standard import CleanText, Date, Regexp, CleanDecima
TableCell
,
Field
,
Async
,
AsyncLoad
,
Eval
from
weboob.browser.filters.html
import
Attr
,
Link
from
weboob.capabilities.bank
import
Account
,
Investment
,
Transaction
from
weboob.capabilities.base
import
NotAvailable
from
weboob.capabilities.base
import
NotAvailable
,
empty
from
weboob.exceptions
import
BrowserUnavailable
...
...
@@ -104,7 +104,7 @@ class ItemInvestment(ItemElement):
def
obj_portfolio_share
(
self
):
ps
=
MyDecimal
(
TableCell
(
'portfolio_share'
,
default
=
None
))(
self
)
return
Eval
(
lambda
x
:
x
/
100
,
ps
)(
self
)
if
ps
else
NotAvailable
return
Eval
(
lambda
x
:
x
/
100
,
ps
)(
self
)
if
not
empty
(
ps
)
else
NotAvailable
class
TableTransactionsInvestment
(
TableInvestment
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment