Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Phyks
kresus
Commits
54308b1f
Commit
54308b1f
authored
Jan 08, 2018
by
Phyks (Lucas Verney)
Browse files
Fixes
parent
546f28b0
Pipeline
#34612
passed with stages
in 6 minutes and 23 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
server/weboob/main.py
View file @
54308b1f
...
...
@@ -475,6 +475,28 @@ class Connector(object):
# Handle upcoming transactions
for
line
in
backend
.
iter_coming
(
account
):
# Handle date
if
line
.
rdate
:
# Use date of the payment (real date) if available.
date
=
line
.
rdate
elif
line
.
date
:
# Otherwise, use debit date, on the bank statement.
date
=
line
.
date
else
:
logging
.
error
(
'No known date property in operation line: %s.'
,
unicode
(
line
.
raw
)
)
date
=
datetime
.
now
()
isodate
=
date
.
isoformat
()
debit_date
=
line
.
date
.
isoformat
()
if
line
.
label
:
title
=
unicode
(
line
.
label
)
else
:
title
=
unicode
(
line
.
raw
)
results
.
append
({
'account'
:
account
.
id
,
'amount'
:
unicode
(
line
.
amount
),
...
...
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