Commit 4f7856ac authored by Arthur Lutz's avatar Arthur Lutz
Browse files

[ccplugin] add ignored count (closes #2150279)

parent bd3a67fe4345
......@@ -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 'skipped'
return 'ignored'
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment