Detect if red_fam is archived but has no detectable ending, set status 2 anyway
This commit is contained in:
@@ -190,12 +190,18 @@ class RED_FAM_PARSER( RED_FAM ):
|
|||||||
def status( self ):
|
def status( self ):
|
||||||
"""
|
"""
|
||||||
Handles detection of correct status
|
Handles detection of correct status
|
||||||
|
There are three possible stati:
|
||||||
|
- 0 Discussion is running --> no ending, page is not an archive
|
||||||
|
- 1 Discussion is over --> ending present, page is not an archive
|
||||||
|
- 2 Discussion is archived --> ending (normaly) present, page is an archive
|
||||||
"""
|
"""
|
||||||
# Diskussion läuft --> Status ? --> 0 ! _ending
|
# Diskussion läuft --> Status ? --> 0 ! _ending
|
||||||
# Diskussion beendet --> Status 0 --> 1 _ending
|
# Diskussion beendet --> Status 0 --> 1 _ending
|
||||||
# Diskussion archiviert --> Status 0/1 --> 2 ???
|
# Diskussion archiviert --> Status 0/1 --> 2 ???
|
||||||
|
|
||||||
if not self._ending:
|
# No ending, discussion is running:
|
||||||
|
# Sometimes archived discussions also have no detectable ending
|
||||||
|
if not self._ending and not self._red_page_archive:
|
||||||
self._status = 0
|
self._status = 0
|
||||||
else:
|
else:
|
||||||
if not self._red_page_archive:
|
if not self._red_page_archive:
|
||||||
|
|||||||
Reference in New Issue
Block a user