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:
@@ -100,7 +100,7 @@ class SummaryPageEntry():
|
||||
self.get_countrylist()
|
||||
|
||||
# Check if parsing country list is needed
|
||||
if( self.countrylist.is_parsing_needed( self.countrylist_revid )):
|
||||
if( self.countrylist.parsed):
|
||||
|
||||
self.correct_chartein()
|
||||
|
||||
@@ -220,7 +220,8 @@ class SummaryPageEntry():
|
||||
Detects wether writing of entry is needed and stores information in
|
||||
Class-Attribute
|
||||
"""
|
||||
type( self ).write_needed = ( ( self.old_entry != self.new_entry ) or
|
||||
type( self ).write_needed = ( ( self.old_entry != self.new_entry ) and
|
||||
self.countrylist.parsed or
|
||||
type( self ).write_needed )
|
||||
|
||||
def get_entry( self ):
|
||||
@@ -228,7 +229,7 @@ class SummaryPageEntry():
|
||||
Returns the new entry if CountryList was parsed otherwise returns the
|
||||
old one
|
||||
"""
|
||||
if( self.countrylist.is_parsing_needed( self.countrylist_revid )):
|
||||
if( self.countrylist.parsed):
|
||||
return self.new_entry
|
||||
else:
|
||||
return self.old_entry
|
||||
|
||||
Reference in New Issue
Block a user