This commit is contained in:
f43nd1r 2019-10-04 02:23:13 +02:00
parent b184890a14
commit c6c6d2fc58

View file

@ -86,7 +86,7 @@ public class BugMerger {
while (iterator.hasNext()) {
Stacktrace s = iterator.next();
StacktraceMatch match = entityManager.merge(new StacktraceMatch(s, stacktrace, FuzzySearch.ratio(s.getStacktrace(), stacktrace.getStacktrace())));
if (match.getScore() >= b.getApp().getConfiguration().getMinScore()) {
if (!s.getBug().equals(b) && match.getScore() >= b.getApp().getConfiguration().getMinScore()) {
entityManager.flush();
b = mergeBugs(Arrays.asList(s.getBug(), b), s.getBug().getTitle());
}