From 31ea512c41275ca6c310a5e6d229cd19edfb696a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?GOLDERWEB=20=E2=80=93=20Jonathan=20Golder?= Date: Fri, 11 Sep 2015 13:01:04 +0200 Subject: [PATCH] Prevent overwriting of ending with None by only calling RED_FAM_PARSER if there was no ending before --- red_page.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/red_page.py b/red_page.py index 5a5889c..e9fcfc6 100644 --- a/red_page.py +++ b/red_page.py @@ -104,9 +104,8 @@ class RED_PAGE: # Check if we have alredy recognized the beginning date of the discussion (in former iteration) or if we have a done-notice if not beginning: beginning = RED_FAM_PARSER.is_beginning( line ) - else: + elif not ending: ending = RED_FAM_PARSER.is_ending( line ) - # Increment line counter i += 1 else: