We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b67f039 commit 5679358Copy full SHA for 5679358
textflow/services/__init__.py
@@ -601,5 +601,5 @@ def get_status(ctx, project_id):
601
'num_completed': num_completed,
602
'num_documents': num_documents,
603
'num_remaining': num_documents - num_completed,
604
- 'percentage': int(num_completed / num_documents) * 100,
+ 'percentage': int(num_completed / num_documents) * 100 if num_documents > 0 else 0,
605
}
0 commit comments