Bug #2089

[traveloob/transilien] Incorrect roadmap duration parsing

Added by Mr Tchuss over 2 years ago. Updated about 2 years ago.

Status:Resolved Start:2015-08-11
Priority:Normal Due date:
Assigned to:Romain Bignon % Done:


Category:Application / traveloob Spent time: -
Target version:1.1 Estimated time:1.00 hour
Module:transilien Branch:


The regexp used to parse roadmap duration is incorrect. Find below a suggested patch:

diff --git a/modules/transilien/pages.py b/modules/transilien/pages.py
index 6d4533b..61b957b 100644
--- a/modules/transilien/pages.py
+++ b/modules/transilien/pages.py
@ -40,7 +40,7 @ class DictElement(ListElement):
class RoadMapDuration(Duration):
- _regexp = re.compile(r'(?P<mn>\d?)')
+ _regexp = re.compile(r'(?P<mn>\d+)')
kwargs = {'minutes': 'mn'}


Associated revisions

Revision 4113d37399aca8e8e6f5ac683f52c739dbf16c8a
Added by Mr Tchuss about 2 years ago

transilien: fix incorrect roadmap duration parsing

Closes: #2089


Updated by Mr Tchuss about 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF