i += 1
if not trace_colors.get(query["stacktrace"]):
c = colors.next()
trace_colors[query["stacktrace"]] = c
query["trace_color"] = trace_colors[query["stacktrace"]]
if trans_id:
self._queries[(i - 1)][1]["ends_trans"] = True
After Change
i += 1
if query["stacktrace"] not in trace_colors:
trace_colors[query["stacktrace"]] = colors.next()query["trace_color"] = trace_colors[query["stacktrace"]]
if trans_id:
self._queries[(i - 1)][1]["ends_trans"] = True