Skip to content
This repository was archived by the owner on Mar 13, 2020. It is now read-only.

Commit afa7a0d

Browse files
committed
SP-149 - restrict rows/second values to 2 decimals
1 parent 95d3ff8 commit afa7a0d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rdl/entities/execution_entity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ def __str__(self):
5050
status=self.status,
5151
started=self.started_on.isoformat(),
5252
completed=self.completed_on.isoformat() if self.completed_on else '',
53-
exec_time=execution_time_str if self.execution_time_str else '',
53+
exec_time=execution_time_str if execution_time_str else '',
5454
models=f'{self.models_processed:,}' if self.models_processed else '',
5555
batches=f'{self.batches_processed:,}' if self.batches_processed else '',
5656
rows=f'{self.rows_processed:,}' if self.rows_processed else '',
57-
rows_per_second=f'{rows_per_second:,}' if rows_per_second else '')
57+
rows_per_second=f'{rows_per_second:,.2f}' if rows_per_second else '')

rdl/entities/execution_model_entity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ def __str__(self):
6464
exec_time=f'{execution_time_s}s' if execution_time_s else '',
6565
batches=f'{self.batches_processed:,}' if self.batches_processed else '',
6666
rows=f'{self.rows_processed:,}' if self.rows_processed else '',
67-
rows_per_second=f'{rows_per_second:,}' if rows_per_second else '')
67+
rows_per_second=f'{rows_per_second:,.2f}' if rows_per_second else '')

0 commit comments

Comments
 (0)