Bug fixes in referers_diff
This commit is contained in:
parent
87612fb786
commit
f24fcbf287
|
@ -56,7 +56,7 @@ class IWLADisplayReferersDiff(IPlugin):
|
||||||
if not self.iwla.getConfValue('create_all_key_phrases_page', True):
|
if not self.iwla.getConfValue('create_all_key_phrases_page', True):
|
||||||
return False
|
return False
|
||||||
month_stats = self.iwla.getMonthStats()
|
month_stats = self.iwla.getMonthStats()
|
||||||
self.cur_key_phrases = {k:v for (k,v) in month_stats.get('key_phrases', {})}
|
self.cur_key_phrases = {k:v for (k,v) in month_stats.get('key_phrases', {}).items()}
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def hook(self):
|
def hook(self):
|
||||||
|
@ -67,7 +67,7 @@ class IWLADisplayReferersDiff(IPlugin):
|
||||||
path = self.iwla.getCurDisplayPath(filename)
|
path = self.iwla.getCurDisplayPath(filename)
|
||||||
page = display.getPage(path)
|
page = display.getPage(path)
|
||||||
if not page: return
|
if not page: return
|
||||||
title = self.iwla._(u'All key phrases')
|
title = self.iwla._(u'Key phrases')
|
||||||
referers_block = page.getBlock(title)
|
referers_block = page.getBlock(title)
|
||||||
|
|
||||||
kp_diff = {}
|
kp_diff = {}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user