Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
132
Issues
132
List
Boards
Labels
Milestones
Merge Requests
40
Merge Requests
40
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
872f3fff
Commit
872f3fff
authored
Jul 17, 2019
by
Maxime Pommier
Committed by
Romain Bignon
Jul 27, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fortuneo] Add bdate
parent
7599809e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
accounts_list.py
modules/fortuneo/pages/accounts_list.py
+7
-1
No files found.
modules/fortuneo/pages/accounts_list.py
View file @
872f3fff
...
...
@@ -291,6 +291,12 @@ class AccountHistoryPage(LoggedPage, HTMLPage):
amount
=
tables
[
i
]
.
xpath
(
"./td[5]/text() | ./td[6]/text()"
)
operation
.
parse
(
date
=
date_oper
,
raw
=
label
,
vdate
=
date_val
)
# There is no difference between card transaction and deferred card transaction
# on the history.
if
operation
.
type
==
FrenchTransaction
.
TYPE_CARD
:
operation
.
bdate
=
operation
.
rdate
# Needed because operation.parse overwrite operation.label
# Theses lines must run after operation.parse.
if
tables
[
i
]
.
xpath
(
"./td[4]/div/text()"
):
...
...
@@ -327,7 +333,7 @@ class CardHistoryPage(LoggedPage, HTMLPage):
tr
=
Transaction
()
tr
.
parse
(
date
=
date
,
raw
=
raw
)
tr
.
rdate
=
tr
.
parse_date
(
rdate
)
tr
.
rdate
=
tr
.
bdate
=
tr
.
parse_date
(
rdate
)
tr
.
type
=
tr
.
TYPE_DEFERRED_CARD
if
credit
:
tr
.
amount
=
CleanDecimal
(
None
,
replace_dots
=
True
)
.
filter
(
credit
)
...
...
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