iwla

iwla Commit Details

Date:2021-08-06 08:45:04 (1 year 3 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:5130b1f6d8422bb7f89eb2c6d918a54bf45d770b
Parents: f149baed70353fdfefaefbfc3744bd6d4c9b963d
Message:Bad 2to3 python conversion : map() function needs to be included into list() operator. If not, they're only analyzed once

Changes:
Mplugins/pre_analysis/page_to_hit.py (2 diffs)
Mplugins/pre_analysis/robots.py (1 diff)

File differences

plugins/pre_analysis/page_to_hit.py
5959
6060
6161
62
62
6363
6464
6565
66
66
6767
6868
6969
......
105105
106106
107107
108
108109
def load(self):
# Page to hit
self.ph_regexps = self.iwla.getConfValue('page_to_hit_conf', [])
self.ph_regexps = map(lambda r: re.compile(r), self.ph_regexps)
self.ph_regexps = list(map(lambda r: re.compile(r), self.ph_regexps))
# Hit to page
self.hp_regexps = self.iwla.getConfValue('hit_to_page_conf', [])
self.hp_regexps = map(lambda r: re.compile(r), self.hp_regexps)
self.hp_regexps = list(map(lambda r: re.compile(r), self.hp_regexps))
self.logger = logging.getLogger(self.__class__.__name__)
return True
super_hit['viewed_hits'][day] -= 1
super_hit['viewed_pages'][0] += 1
super_hit['viewed_hits'][0] -= 1
break
plugins/pre_analysis/robots.py
6060
6161
6262
63
63
6464
6565
6666
self.API_VERSION = 1
def load(self):
self.awstats_robots = map(lambda x : re.compile(('.*%s.*') % (x), re.IGNORECASE), awstats_data.robots)
self.awstats_robots = list(map(lambda x : re.compile(('.*%s.*') % (x), re.IGNORECASE), awstats_data.robots))
self.robot_re = re.compile(r'.*bot.*', re.IGNORECASE)
self.crawl_re = re.compile(r'.*crawl.*', re.IGNORECASE)
self.logger = logging.getLogger(self.__class__.__name__)

Archive Download the corresponding diff file

Branches

Tags