iwla

iwla Commit Details

Date:2016-08-20 13:11:22 (4 years 11 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:a76d8e8b698581b50e369e0ccc97ff715984a726
Parents: be67d39fb2a8cd3f7bcd767b0e5f579e652f474b
Message:Add display only switch (-p)

Changes:
MChangeLog (1 diff)
Mdefault_conf.py (1 diff)
Miwla.py (3 diffs)

File differences

ChangeLog
1
1
22
3
4
35
46
57
8
69
710
811
v0.4 (02/05/2016)
v0.4 (20/08/2016)
** User **
Remove crwalers from feed parsers
Add display only switch (-p)
** Dev **
** Bugs **
for robots, we have to use not_viewed_pages (feeds plugin)
gz files were not generated due to bad time comparison
v0.3 (12/04/2016)
** User **
default_conf.py
3434
3535
3636
37
37
38
3839
3940
4041
# Extensions that are considered as a HTML page (or result) in opposite to hits
pages_extensions = ['/', 'htm', 'html', 'xhtml', 'py', 'pl', 'rb', 'php']
# HTTP codes that are cosidered OK
# HTTP codes that are considered OK
viewed_http_codes = [200, 304]
# If False, doesn't cout visitors that doesn't GET a page but resources only (images, rss...)
iwla.py
608608
609609
610610
611
612
613
614
611615
612616
613617
......
632636
633637
634638
639
640
641
635642
636643
637644
......
835842
836843
837844
845
846
847
848
838849
839850
840851
duplicated_stats['nb_visitors'] = stats['nb_visitors'] = len(self.valid_visitors.keys())
if args.display_only:
self._generateDisplay()
return
self._callPlugins(conf.POST_HOOK_DIRECTORY)
path = self.getDBFilename(cur_time)
self._generateDisplay()
def _generateDayStats(self):
if args.display_only:
return
visits = self.current_analysis['visits']
cur_time = self.meta_infos['last_time']
default=False,
help='Don\'t compress databases (bigger but faster, not compatible with compressed databases)')
parser.add_argument('-p', '--display-only', dest='display_only', action='store_true',
default=False,
help='Only generate display')
args = parser.parse_args()
# Load user conf

Archive Download the corresponding diff file

Branches

Tags