diff --git a/processors/metrics/count_posts.py b/processors/metrics/count_posts.py index 2d56bf98e..9be6a35b5 100644 --- a/processors/metrics/count_posts.py +++ b/processors/metrics/count_posts.py @@ -59,7 +59,7 @@ def process(self): try: date = get_interval_descriptor(post, timeframe) except ValueError as e: - self.dataset.update_status("%s, cannot count posts per %s" % (str(e), timeframe), is_final=True) + self.dataset.update_status(f"{e}, cannot count posts per {timeframe}", is_final=True) self.dataset.update_status(0) return @@ -76,7 +76,7 @@ def process(self): counter += 1 if counter % 2500 == 0: - self.dataset.update_status("Counted through " + str(counter) + " posts.") + self.dataset.update_status(f"Counted {counter:,} of {self.source_dataset.num_rows:,} items.") self.dataset.update_progress(counter / self.source_dataset.num_rows) # pad interval if needed, this is useful if the result is to be