Skip to content

Commit 5465a7a

Browse files
committed
Unify patch generation progress bar to single formatted phase string
1 parent abd1aa0 commit 5465a7a

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

src/codestory/core/semantic_analysis/summarization/summarizer_utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,11 @@ def generate_annotated_patches(
6161
patches = []
6262
pbar = ProgressBarManager.get_pbar()
6363
if pbar is not None:
64-
pbar.set_postfix(
65-
{"phase": "preparing patches", "chunks": f"0/{len(containers)}"}
66-
)
64+
pbar.set_postfix({"phase": f"preparing patches 0/{len(containers)}"})
6765

6866
for i, container in enumerate(containers):
6967
if pbar is not None:
70-
pbar.set_postfix(
71-
{"phase": "preparing patches", "chunks": f"{i + 1}/{len(containers)}"}
72-
)
68+
pbar.set_postfix({"phase": f"preparing patches {i + 1}/{len(containers)}"})
7369
patch = generate_annotated_patch(
7470
container=container,
7571
context_manager=context_manager,

0 commit comments

Comments
 (0)