Round conversion progress from float to int

Fixes #553
This commit is contained in:
deeplow 2023-09-26 12:04:13 +01:00
parent 8d37ff15e0
commit e08b6defc3
No known key found for this signature in database
GPG key ID: 577982871529A52A

View file

@ -78,7 +78,7 @@ class IsolationProvider(ABC):
def print_progress_trusted(
self, document: Document, error: bool, text: str, percentage: float
) -> None:
return self._print_progress(document, error, text, percentage)
return self._print_progress(document, error, text, int(percentage))
def print_progress(
self, document: Document, error: bool, untrusted_text: str, percentage: float