Skip to content
Snippets Groups Projects
Commit 554073f8 authored by Levecque Etienne's avatar Levecque Etienne
Browse files

fix: correct verbose issue

parent e13a3786
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ def send_logs(verbose, shared_dict, task_id, iteration, max_iteration, done):
tmp_dict = shared_dict[task_id]
tmp_dict.update({'completed': iteration, 'total': max_iteration})
shared_dict[task_id] = tmp_dict
elif verbose and done:
elif verbose and shared_dict is None and done:
print(f"DONE {iteration}/{max_iteration}", end="\r")
elif verbose and shared_dict is None and iteration % 100 == 0:
print(f"RUNNING {iteration}/{max_iteration}", end="\r")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment