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)
if hunks:
accumulated[fname] = "\n".join(hunks)
entry.diffs_after = accumulated
if len(accumulated):
if len(accumulated) == 0:
return False
entry.diffs_after = accumulated
return True