Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cubicweb
cubes
awstats
Commits
f171b44b08f0
Commit
4f7856ac
authored
Mar 15, 2012
by
Arthur Lutz
Browse files
[ccplugin] add ignored count (closes #2150279)
parent
bd3a67fe4345
Changes
1
Show whitespace changes
Inline
Side-by-side
ccplugin.py
View file @
f171b44b
...
...
@@ -132,7 +132,7 @@ class StatsUpdater(object):
:param stop: period stop (excluded)
'''
stats_report
=
dict
.
fromkeys
((
'updated'
,
'created'
,
'exists no change'
,
'skipped'
,
'periods'
,
'compressed'
),
0
)
'skipped'
,
'ignored'
,
'periods'
,
'compressed'
),
0
)
for
chosendate
in
track_progress
(
date_range
(
self
.
start
,
self
.
stop
),
(
self
.
stop
-
self
.
start
).
days
,
pb_size
=
70
,
pb_title
=
'Import'
):
...
...
@@ -164,7 +164,7 @@ class StatsUpdater(object):
except
UnknownEid
:
return
'skipped'
if
entity
.
__regid__
not
in
self
.
allowed_etypes
:
return
'
skipp
ed'
return
'
ignor
ed'
try
:
hit
=
self
.
all_hits
[(
eid
,
stats_period
.
eid
,
hit_type
)]
except
KeyError
:
# no hit yet, create one
...
...
@@ -263,6 +263,7 @@ Number of stat objects created : %(created)s
Number of stat objects updated : %(updated)s
Number of stat objects already existed : %(exists no change)s
Number of stat objects skipped : %(skipped)s
Number of stat objects ignored : %(ignored)s
Number of stat objects compressed : %(compressed)s
'''
%
stats_report
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment