The new woob repository is here: https://gitlab.com/woob/woob. This gitlab will be removed soon.

Commit 16bf5522 authored by Vincent A's avatar Vincent A

[caissedepargne] fix Subscription.id type and value

It should be str, not Decimal. Also, it trimmed leading zeroes, which is
wrong.
parent 14c6f915
......@@ -2490,7 +2490,7 @@ class iter_subscription(ListElement):
class item(ItemElement):
klass = Subscription
obj_id = CleanDecimal('.')
obj_id = Regexp(CleanText('.'), r"(\d+)")
obj_label = Regexp(CleanText('.'), r'([^\d]*) ')
obj_subscriber = Field('label')
......
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