Add alternative syntax for done_notice

This commit is contained in:
2015-09-11 13:56:16 +02:00
parent 47238f0f96
commit ebf7a8fe0b

View File

@@ -69,6 +69,7 @@ class RED_FAM_PARSER( RED_FAM ):
# Textpattern for recognisation of done-notices
__done_notice = ":<small>Archivierung dieses Abschnittes wurde gewünscht von:"
__done_notice2 = "{{Erledigt|"
def __init__( self, red_fam_heading, red_page_id, red_page_archive, beginning, ending=None ):
"""
@@ -264,7 +265,7 @@ class RED_FAM_PARSER( RED_FAM ):
@returns str Timestamp, otherwise None
"""
if cls.__done_notice in line:
if ( cls.__done_notice in line ) or ( cls.__done_notice2 in line ):
result = cls.__timestamp_pat.search( line )
if result:
return result.group()