File tree Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Expand file tree Collapse file tree 4 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
23
23
24
24
- Added Polish README
25
25
26
+ ### Changed
27
+
28
+ - ` rich.progress.track() ` will now show the elapsed time after finishing the task https://github.com/Textualize/rich/pull/2659
29
+
26
30
## [ 13.3.1] - 2023-01-28
27
31
28
32
### Fixed
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ The following people have contributed to the development of Rich:
23
23
- [ Finn Hughes] ( https://github.com/finnhughes )
24
24
- [ Ionite] ( https://github.com/ionite34 )
25
25
- [ Josh Karpel] ( https://github.com/JoshKarpel )
26
+ - [ Jan Katins] ( https://github.com/jankatins )
26
27
- [ Hugo van Kemenade] ( https://github.com/hugovk )
27
28
- [ Andrew Kettmann] ( https://github.com/akettmann )
28
29
- [ Martin Larralde] ( https://github.com/althonos )
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ def track(
151
151
pulse_style = pulse_style ,
152
152
),
153
153
TaskProgressColumn (show_speed = show_speed ),
154
- TimeRemainingColumn (),
154
+ TimeRemainingColumn (elapsed_when_finished = True ),
155
155
)
156
156
)
157
157
progress = Progress (
Original file line number Diff line number Diff line change @@ -297,7 +297,7 @@ def test_track() -> None:
297
297
assert value == next (expected_values )
298
298
result = console .file .getvalue ()
299
299
print (repr (result ))
300
- expected = "\x1b [?25l\r \x1b [2Ktest \x1b [38;5;237m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m \x1b [35m 0%\x1b [0m \x1b [36m-:--:--\x1b [0m\r \x1b [2Ktest \x1b [38;2;249;38;114m━━━━━━━━━━━━━\x1b [0m\x1b [38;5;237m╺\x1b [0m\x1b [38;5;237m━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m \x1b [35m 33%\x1b [0m \x1b [36m-:--:--\x1b [0m\r \x1b [2Ktest \x1b [38;2;249;38;114m━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m\x1b [38;2;249;38;114m╸\x1b [0m\x1b [38;5;237m━━━━━━━━━━━━━\x1b [0m \x1b [35m 67%\x1b [0m \x1b [36m0:00:06\x1b [0m\r \x1b [2Ktest \x1b [38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m \x1b [35m100%\x1b [0m \x1b [36m0 :00:00 \x1b [0m\r \x1b [2Ktest \x1b [38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m \x1b [35m100%\x1b [0m \x1b [36m0 :00:00 \x1b [0m\n \x1b [?25h"
300
+ expected = "\x1b [?25l\r \x1b [2Ktest \x1b [38;5;237m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m \x1b [35m 0%\x1b [0m \x1b [36m-:--:--\x1b [0m\r \x1b [2Ktest \x1b [38;2;249;38;114m━━━━━━━━━━━━━\x1b [0m\x1b [38;5;237m╺\x1b [0m\x1b [38;5;237m━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m \x1b [35m 33%\x1b [0m \x1b [36m-:--:--\x1b [0m\r \x1b [2Ktest \x1b [38;2;249;38;114m━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m\x1b [38;2;249;38;114m╸\x1b [0m\x1b [38;5;237m━━━━━━━━━━━━━\x1b [0m \x1b [35m 67%\x1b [0m \x1b [36m0:00:06\x1b [0m\r \x1b [2Ktest \x1b [38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m \x1b [35m100%\x1b [0m \x1b [33m0 :00:19 \x1b [0m\r \x1b [2Ktest \x1b [38;2;114;156;31m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\x1b [0m \x1b [35m100%\x1b [0m \x1b [33m0 :00:19 \x1b [0m\n \x1b [?25h"
301
301
print ("--" )
302
302
print ("RESULT:" )
303
303
print (result )
You can’t perform that action at this time.
0 commit comments