[Patchew-devel] [PATCH 1/2] views: clean up add_msg_recurse
Paolo Bonzini
pbonzini at redhat.com
Wed May 2 15:56:15 UTC 2018
prepare_message was being called twice for no reason. Probably
just a cut-and-paste mistake.
Signed-off-by: Paolo Bonzini <pbonzini at redhat.com>
---
www/views.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/www/views.py b/www/views.py
index 6ecfe59..b01d37e 100644
--- a/www/views.py
+++ b/www/views.py
@@ -79,7 +79,7 @@ def prepare_series(request, s, skip_patches=False):
def add_msg_recurse(m, skip_patches, depth=0):
a = prepare_message(request, m, True)
a.indent_level = min(depth, 4)
- r.append(prepare_message(request, m, True))
+ r.append(a)
replies = m.get_replies()
non_patches = [x for x in replies if not x.is_patch]
patches = []
--
2.17.0
More information about the Patchew-devel
mailing list