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
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vincent Danjean
weboob
Commits
f3fe5318
Commit
f3fe5318
authored
May 23, 2019
by
Maxime Pommier
Committed by
Romain Bignon
May 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[caissedepargne] Fix iter account/coming/history for card account when there is no coming
Closes: 41707@sibi
parent
d03e9ee1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
modules/caissedepargne/browser.py
modules/caissedepargne/browser.py
+13
-7
No files found.
modules/caissedepargne/browser.py
View file @
f3fe5318
...
...
@@ -450,9 +450,13 @@ class CaisseEpargne(LoginBrowser, StatesMixin):
if
self
.
cards
.
is_here
():
for
card
in
cards
:
info
=
card
.
parent
.
_card_links
self
.
page
.
go_list
()
self
.
page
.
go_history
(
info
)
card
.
_coming_info
=
self
.
page
.
get_card_coming_info
(
card
.
number
,
info
.
copy
())
# If info is filled, that mean there are comings transaction
card
.
_coming_info
=
None
if
info
:
self
.
page
.
go_list
()
self
.
page
.
go_history
(
info
)
card
.
_coming_info
=
self
.
page
.
get_card_coming_info
(
card
.
number
,
info
.
copy
())
self
.
accounts
.
extend
(
cards
)
...
...
@@ -528,7 +532,7 @@ class CaisseEpargne(LoginBrowser, StatesMixin):
# In this case, we want the coming transaction for the new website
# (old website return coming directly in `get_coming()` )
if
account_card
and
info
[
'type'
]
==
'HISTORIQUE_CB'
:
if
account_card
and
info
and
info
[
'type'
]
==
'HISTORIQUE_CB'
:
self
.
page
.
go_coming
(
account_card
.
_coming_info
[
'link'
])
info
[
'link'
]
=
[
info
[
'link'
]]
...
...
@@ -688,9 +692,11 @@ class CaisseEpargne(LoginBrowser, StatesMixin):
# We are on the new website.
info
=
account
.
parent
.
_card_links
for
tr
in
self
.
_get_history
(
info
.
copy
(),
account
):
tr
.
type
=
tr
.
TYPE_DEFERRED_CARD
trs
.
append
(
tr
)
# if info is empty, that mean there are no coming yet
if
info
:
for
tr
in
self
.
_get_history
(
info
.
copy
(),
account
):
tr
.
type
=
tr
.
TYPE_DEFERRED_CARD
trs
.
append
(
tr
)
return
sorted_transactions
(
trs
)
...
...
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