iwla

iwla Commit Details

Date:2016-02-04 20:44:36 (5 years 5 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:79da471398ff8265c7b82eaf54425fba2a0402f8
Parents: 992c3cee934ec47c3913dd983d661d6a706d8a46
Message:Fix typo error in getCurrentVisits() method name

Changes:
Miwla.py (1 diff)
Mplugins/display/feeds.py (1 diff)
Mplugins/display/track_users.py (1 diff)
Mplugins/post_analysis/feeds.py (1 diff)
Mplugins/post_analysis/hours_stats.py (1 diff)
Mplugins/post_analysis/referers.py (1 diff)
Mplugins/post_analysis/reverse_dns.py (1 diff)
Mplugins/post_analysis/top_hits.py (1 diff)
Mplugins/post_analysis/top_pages.py (1 diff)
Mplugins/pre_analysis/page_to_hit.py (1 diff)
Mplugins/pre_analysis/robots.py (1 diff)

File differences

iwla.py
188188
189189
190190
191
191
192192
193193
194194
def getMonthStats(self):
return self.current_analysis['month_stats']
def getCurrentVisists(self):
def getCurrentVisits(self):
return self.current_analysis['visits']
def getValidVisitors(self):
plugins/display/feeds.py
6262
6363
6464
65
65
6666
6767
6868
from plugins.post_analysis.feeds import IWLAPostAnalysisFeeds
display = self.iwla.getDisplay()
hits = self.iwla.getCurrentVisists()
hits = self.iwla.getCurrentVisits()
nb_feeds_parsers = 0
# All in a page
plugins/display/track_users.py
6464
6565
6666
67
67
6868
6969
7070
def hook(self):
display = self.iwla.getDisplay()
hits = self.iwla.getCurrentVisists()
hits = self.iwla.getCurrentVisits()
stats = {}
# All in a page
plugins/post_analysis/feeds.py
8585
8686
8787
88
88
8989
9090
9191
hit['feed_parser'] = isFeedParser
def hook(self):
hits = self.iwla.getCurrentVisists()
hits = self.iwla.getCurrentVisits()
one_hit_only = {}
for hit in hits.values():
isFeedParser = hit.get('feed_parser', None)
plugins/post_analysis/hours_stats.py
6262
6363
6464
65
65
6666
6767
6868
self.API_VERSION = 1
def hook(self):
stats = self.iwla.getCurrentVisists()
stats = self.iwla.getCurrentVisits()
month_stats = self.iwla.getMonthStats()
hours_stats = month_stats.get('hours_stats', {})
plugins/post_analysis/referers.py
120120
121121
122122
123
123
124124
125125
126126
break
def hook(self):
stats = self.iwla.getCurrentVisists()
stats = self.iwla.getCurrentVisits()
month_stats = self.iwla.getMonthStats()
referers = month_stats.get('referers', {})
plugins/post_analysis/reverse_dns.py
6464
6565
6666
67
67
6868
6969
7070
return True
def hook(self):
hits = self.iwla.getCurrentVisists()
hits = self.iwla.getCurrentVisits()
for (k, hit) in hits.items():
if hit.get('dns_analysed', False): continue
if not hit['feed_parser'] and\
plugins/post_analysis/top_hits.py
5353
5454
5555
56
56
5757
5858
5959
self.API_VERSION = 1
def hook(self):
stats = self.iwla.getCurrentVisists()
stats = self.iwla.getCurrentVisits()
month_stats = self.iwla.getMonthStats()
top_hits = month_stats.get('top_hits', {})
plugins/post_analysis/top_pages.py
5959
6060
6161
62
62
6363
6464
6565
return True
def hook(self):
stats = self.iwla.getCurrentVisists()
stats = self.iwla.getCurrentVisits()
month_stats = self.iwla.getMonthStats()
top_pages = month_stats.get('top_pages', {})
plugins/pre_analysis/page_to_hit.py
6969
7070
7171
72
72
7373
7474
7575
return True
def hook(self):
hits = self.iwla.getCurrentVisists()
hits = self.iwla.getCurrentVisits()
for (k, super_hit) in hits.items():
if super_hit['robot']: continue
plugins/pre_analysis/robots.py
7676
7777
7878
79
79
8080
8181
8282
# Basic rule to detect robots
def hook(self):
hits = self.iwla.getCurrentVisists()
hits = self.iwla.getCurrentVisits()
for (k, super_hit) in hits.items():
if super_hit['robot']:
self.logger.debug('%s is a robot' % (k))

Archive Download the corresponding diff file

Branches

Tags