Commit 72419746 authored by Martin Sicot's avatar Martin Sicot Committed by hydrargyrum
Browse files

[degiro] Fix Wrong transactions dates (part2)

Transactions date are displayed in the JSON in yyyy-mm-dd format but
where retrieved using day_first=True. Transactions are currently lacking
an id. When they get one, we can merge this MR and the transactions in
the backend will be corrected.
parent e4938af9
......@@ -155,7 +155,7 @@ class item(ItemElement):
klass = Transaction
obj_raw = Transaction.Raw(CleanText(Dict('description')))
obj_date = Date(CleanText(Dict('date')), dayfirst=True)
obj_date = Date(CleanText(Dict('date')))
obj__isin = Regexp(Dict('description'), r'\((.{12}?)\)', nth=-1, default=None)
obj__number = Regexp(Dict('description'), r'^([Aa]chat|[Vv]ente|[Bb]uy|[Ss]ell) (\d+[,.]?\d*)', template='\\2', default=None)
obj__datetime = Dict('date')
......@@ -236,7 +236,7 @@ class item(ItemElement):
obj__product_id = Dict('productId')
obj_quantity = CleanDecimal(Dict('quantity'))
obj_unitvalue = CleanDecimal(Dict('price'))
obj_vdate = Date(CleanText(Dict('date')), dayfirst=True)
obj_vdate = Date(CleanText(Dict('date')))
obj__action = Dict('buysell')
obj__datetime = Dict('date')
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