diff --git a/label_studio_slack_reporter/label_studio.py b/label_studio_slack_reporter/label_studio.py index 8355b53..53c24fb 100644 --- a/label_studio_slack_reporter/label_studio.py +++ b/label_studio_slack_reporter/label_studio.py @@ -166,7 +166,8 @@ def generate_message(self, count = 0 else: count = annotations_count[user.id] - message += f'{user.email}: {count}\n' + if count > 0: + message += f'{user.email}: {count}\n' message += f'Total: {sum(annotations_count.values())}\n' message += f'Estimated time to completion: {estimated_days:.1f} days\n'