Display viewed and no viewed data for feeds (can be set as a robot too late)
This commit is contained in:
parent
ad01b48898
commit
cce8c75118
|
@ -86,10 +86,9 @@ class IWLADisplayFeeds(IPlugin):
|
|||
address = '%s [%s]' % (address, super_hit['remote_ip'])
|
||||
if super_hit['feed_parser'] == IWLAPostAnalysisFeeds.MERGED_FEED_PARSER:
|
||||
address += '*'
|
||||
if super_hit['robot']:
|
||||
table.appendRow([address, super_hit['not_viewed_pages'][0], super_hit['not_viewed_hits'][0]])
|
||||
else:
|
||||
table.appendRow([address, super_hit['viewed_pages'][0], super_hit['viewed_hits'][0]])
|
||||
pages = super_hit['not_viewed_pages'][0] + super_hit['viewed_pages'][0]
|
||||
hits = super_hit['not_viewed_hits'][0] + super_hit['viewed_hits'][0]
|
||||
table.appendRow([address, pages, hits])
|
||||
page.appendBlock(table)
|
||||
note = DisplayHTMLRaw(self.iwla, ('<small>*%s</small>' % (self.iwla._(u'Merged feeds parsers'))))
|
||||
page.appendBlock(note)
|
||||
|
|
Loading…
Reference in New Issue
Block a user