mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-01 16:44:51 +02:00
Fix in rating feeds
This commit is contained in:
parent
57e1c20c08
commit
cc20f48dad
|
@ -19,10 +19,13 @@ class Rater(AbstractRater):
|
|||
score = 0
|
||||
|
||||
for url in self.check_results['html_head']:
|
||||
if self.check_results['html_head'][url]['link_rss_atom'] is not None:
|
||||
value = True
|
||||
score = self.max_score
|
||||
break
|
||||
if self.check_results['html_head'][url]['link_rss_atom'] is None:
|
||||
continue
|
||||
if self.check_results['html_head'][url]['link_rss_atom'] == []:
|
||||
continue
|
||||
value = True
|
||||
score = self.max_score
|
||||
break
|
||||
|
||||
return {
|
||||
'type': self.rating_type,
|
||||
|
|
Loading…
Reference in a new issue