From 3f45682fb2820a91e80e6cc61a3000839d2d29cc Mon Sep 17 00:00:00 2001 From: jayy <35180217+nsjcorps@users.noreply.github.com> Date: Fri, 27 Dec 2019 19:27:49 +0100 Subject: [PATCH] Fixed progress bar increment --- evalai/submissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evalai/submissions.py b/evalai/submissions.py index ac8bccf62..3f9eb311f 100644 --- a/evalai/submissions.py +++ b/evalai/submissions.py @@ -174,7 +174,7 @@ def push(image, phase, url): if line.get("status") in ["Pushing", "Pushed"] and line.get( "progress" ): - print("{id}: {status} {progress}".format(**line)) + print("{id}: {status} {progress}\r".format(**line), end='', flush=True) elif line.get("errorDetail"): error = line.get("error") notify_user(error, color="red")