fixed bug in manual selection

This commit is contained in:
Karma Riuk
2025-06-04 12:07:41 +02:00
parent 9a24a734e7
commit bf1591c61d

View File

@ -171,9 +171,9 @@ def refine_entry(
hunks = select_relevant_hunks(diff, entry.comments[0].body) hunks = select_relevant_hunks(diff, entry.comments[0].body)
if hunks: if hunks:
accumulated[fname] = "\n".join(hunks) accumulated[fname] = "\n".join(hunks)
entry.diffs_after = accumulated if len(accumulated) == 0:
if len(accumulated):
return False return False
entry.diffs_after = accumulated
return True return True