Skip to content

Commit

Permalink
feat: Drops 0 count report
Browse files Browse the repository at this point in the history
  • Loading branch information
ntlhui committed Dec 24, 2024
1 parent 05478c3 commit e2c0a64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion label_studio_slack_reporter/label_studio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e2c0a64

Please sign in to comment.