[weboob] [PATCH 1/1] CRAGR: Fix wrong dates on day and month

Romain Bignon romain at symlink.me
Sat Oct 27 16:59:22 CEST 2012


Hello,

On 25/Oct - 20:24, Richard Genoud wrote:
> diff --git a/modules/cragr/pages/accounts_list.py b/modules/cragr/pages/accounts_list.py
> index 53238d7..82b5d58 100644
> --- a/modules/cragr/pages/accounts_list.py
> +++ b/modules/cragr/pages/accounts_list.py
> @@ -217,7 +217,7 @@ class AccountsList(CragrBasePage):
>          """
>              Builds a date object from a 'DD/MM' string
>          """
> -        matches = re.search('([012]?[0-9]|3[01])\s*/\s*(0?[1-9]|1[012])', string)
> +        matches = re.search('(3[01]|[012]?[0-9])\s*/\s*(1[012]|0?[1-9])', string)
>          if matches is None:
>              return self.fallback_date()
>          return self.date_from_day_month(int(matches.group(1)), int(matches.group(2)))

This problem has already been solved by this commit:

http://git.symlink.me/?p=romain/weboob.git;a=blobdiff;f=modules/cragr/pages/accounts_list.py;h=e6139a5077339016c38e9dcffa89e22bfc054832;hp=4e57417260cc0371b456facadb02861e517e1d21;hb=a3d1c8daa553f0f777631d83bbd4c6f746a8d5c4;hpb=73f6617442183cc646243bd37abeaf6cb37a7424

Does it work for you?

Romain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <https://lists.symlink.me/pipermail/weboob/attachments/20121027/c3e9e5f9/attachment.sig>


More information about the weboob mailing list