Display viewed and no viewed data for feeds (can be set as a robot too late)

This commit is contained in:
Gregory Soutade 2022-11-16 21:09:23 +01:00
parent ad01b48898
commit cce8c75118
1 changed files with 3 additions and 4 deletions

View File

@ -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)