Show More
@@ -312,15 +312,15 b' class Thread(models.Model):' | |||
|
312 | 312 | searching_for_index = True |
|
313 | 313 | parent_depth = depth |
|
314 | 314 | |
|
315 |
|
|
|
316 |
|
|
|
317 |
|
|
|
318 |
|
|
|
319 |
|
|
|
315 | if not found_parent: | |
|
316 | tree.append((0, reply)) | |
|
317 | else: | |
|
318 | if searching_for_index: | |
|
319 | tree.append((parent_depth + 1, reply)) | |
|
320 | 320 | |
|
321 |
|
|
|
322 |
|
|
|
323 |
|
|
|
324 |
|
|
|
321 | offset = 0 | |
|
322 | for last_index, parent_depth in indexes_to_insert: | |
|
323 | tree.insert(last_index + offset, (parent_depth + 1, reply)) | |
|
324 | offset += 1 | |
|
325 | 325 | |
|
326 | 326 | return tree |
General Comments 0
You need to be logged in to leave comments.
Login now