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

[ccplugin] add ignored count (closes #2150279)

parent bd3a67fe4345
...@@ -132,7 +132,7 @@ class StatsUpdater(object): ...@@ -132,7 +132,7 @@ class StatsUpdater(object):
:param stop: period stop (excluded) :param stop: period stop (excluded)
''' '''
stats_report = dict.fromkeys(('updated', 'created', 'exists no change', 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), for chosendate in track_progress(date_range(self.start, self.stop),
(self.stop-self.start).days, (self.stop-self.start).days,
pb_size=70, pb_title='Import'): pb_size=70, pb_title='Import'):
...@@ -164,7 +164,7 @@ class StatsUpdater(object): ...@@ -164,7 +164,7 @@ class StatsUpdater(object):
except UnknownEid: except UnknownEid:
return 'skipped' return 'skipped'
if entity.__regid__ not in self.allowed_etypes: if entity.__regid__ not in self.allowed_etypes:
return 'skipped' return 'ignored'
try: try:
hit = self.all_hits[(eid, stats_period.eid, hit_type)] hit = self.all_hits[(eid, stats_period.eid, hit_type)]
except KeyError: # no hit yet, create one except KeyError: # no hit yet, create one
...@@ -263,6 +263,7 @@ Number of stat objects created : %(created)s ...@@ -263,6 +263,7 @@ Number of stat objects created : %(created)s
Number of stat objects updated : %(updated)s Number of stat objects updated : %(updated)s
Number of stat objects already existed : %(exists no change)s Number of stat objects already existed : %(exists no change)s
Number of stat objects skipped : %(skipped)s Number of stat objects skipped : %(skipped)s
Number of stat objects ignored : %(ignored)s
Number of stat objects compressed : %(compressed)s Number of stat objects compressed : %(compressed)s
''' % stats_report ''' % 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