Fix Bug: Writing is requested even when only rev_ids have changed

Introduce new attr to CountryList for simple get information wether page was parsed

The SummaryPageEntryTemplate comparation to non-equal fails when unparsed Entrys occur
--> and it with information wether CountryList was parsed
This commit is contained in:
2015-11-23 19:36:19 +01:00
parent e3c2c1a5d9
commit 5b084f6fde
2 changed files with 9 additions and 3 deletions

View File

@@ -74,6 +74,8 @@ class CountryList():
for attr in __attr:
setattr( self, attr, None )
self.parsed = False
# Try to find year
self.find_year()
@@ -121,6 +123,9 @@ class CountryList():
self.prepare_titel()
self.prepare_interpret()
# For easy detecting wether we have parsed self
self.parsed = True
def detect_belgian( self ):
"""
Detect wether current entry is on of the belgian (Belgien/Wallonien)