From 0f71291c3eaa46bccec4ddc0dbab9b3a36c4a6c8 Mon Sep 17 00:00:00 2001 From: Florent Date: Thu, 25 Jul 2013 12:07:34 +0200 Subject: [PATCH] Fix parsing of details (site changed) --- modules/leclercmobile/pages/history.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/leclercmobile/pages/history.py b/modules/leclercmobile/pages/history.py index 7944ffbd..3b145463 100644 --- a/modules/leclercmobile/pages/history.py +++ b/modules/leclercmobile/pages/history.py @@ -63,7 +63,8 @@ class PdfPage(): lines = [x for x in lines if len(x) > 0] # Remove empty lines details = [] detail = None - lines.pop(-1) # line for picture informations + lines.pop(0) # MENSUELLE + lines.pop(-1) # Line to describes pictures for line in lines: if "Votre consommation" in line: line = line.split(": ", 1)[1]