|
|
|
@ -481,7 +481,7 @@ def get_Progress(client, sid, pid, id):
|
|
|
|
|
temp_progress = -1
|
|
|
|
|
last_message = ''
|
|
|
|
|
percent = returnProgr.percent
|
|
|
|
|
while percent <= 100 and percent >= 0 :
|
|
|
|
|
while percent <= 100 and percent >= 0:
|
|
|
|
|
if temp_progress != percent:
|
|
|
|
|
# last_message = print_progress(returnProgr, last_msg = last_message)
|
|
|
|
|
last_message = print_progressbar(returnProgr, pbar,
|
|
|
|
@ -491,6 +491,8 @@ def get_Progress(client, sid, pid, id):
|
|
|
|
|
print
|
|
|
|
|
return
|
|
|
|
|
temp_progress = percent
|
|
|
|
|
else:
|
|
|
|
|
pbar.update(percent)
|
|
|
|
|
time.sleep(1)
|
|
|
|
|
returnProgr = client.service.get_progress(sid, pid, id)
|
|
|
|
|
percent = returnProgr.percent
|
|
|
|
|