Prevent overwriting of ending with None by only calling RED_FAM_PARSER if there was no ending before
This commit is contained in:
@@ -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
|
# 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:
|
if not beginning:
|
||||||
beginning = RED_FAM_PARSER.is_beginning( line )
|
beginning = RED_FAM_PARSER.is_beginning( line )
|
||||||
else:
|
elif not ending:
|
||||||
ending = RED_FAM_PARSER.is_ending( line )
|
ending = RED_FAM_PARSER.is_ending( line )
|
||||||
|
|
||||||
# Increment line counter
|
# Increment line counter
|
||||||
i += 1
|
i += 1
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user