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'])
|
address = '%s [%s]' % (address, super_hit['remote_ip'])
|
||||||
if super_hit['feed_parser'] == IWLAPostAnalysisFeeds.MERGED_FEED_PARSER:
|
if super_hit['feed_parser'] == IWLAPostAnalysisFeeds.MERGED_FEED_PARSER:
|
||||||
address += '*'
|
address += '*'
|
||||||
if super_hit['robot']:
|
pages = super_hit['not_viewed_pages'][0] + super_hit['viewed_pages'][0]
|
||||||
table.appendRow([address, super_hit['not_viewed_pages'][0], super_hit['not_viewed_hits'][0]])
|
hits = super_hit['not_viewed_hits'][0] + super_hit['viewed_hits'][0]
|
||||||
else:
|
table.appendRow([address, pages, hits])
|
||||||
table.appendRow([address, super_hit['viewed_pages'][0], super_hit['viewed_hits'][0]])
|
|
||||||
page.appendBlock(table)
|
page.appendBlock(table)
|
||||||
note = DisplayHTMLRaw(self.iwla, ('<small>*%s</small>' % (self.iwla._(u'Merged feeds parsers'))))
|
note = DisplayHTMLRaw(self.iwla, ('<small>*%s</small>' % (self.iwla._(u'Merged feeds parsers'))))
|
||||||
page.appendBlock(note)
|
page.appendBlock(note)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user