From nobody Sun Jan 5 07:07:45 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1525276804105779.0694146563109; Wed, 2 May 2018 09:00:04 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 868DE80484; Wed, 2 May 2018 16:00:03 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6C70118514; Wed, 2 May 2018 16:00:03 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 49913180BAE6; Wed, 2 May 2018 16:00:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w42FuIfW011130 for ; Wed, 2 May 2018 11:56:18 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2C15D2023228; Wed, 2 May 2018 15:56:18 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-116-186.ams2.redhat.com [10.36.116.186]) by smtp.corp.redhat.com (Postfix) with ESMTP id B309C2023227 for ; Wed, 2 May 2018 15:56:17 +0000 (UTC) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Wed, 2 May 2018 17:56:15 +0200 Message-Id: <20180502155616.3826-2-pbonzini@redhat.com> In-Reply-To: <20180502155616.3826-1-pbonzini@redhat.com> References: <20180502155616.3826-1-pbonzini@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 1/2] views: clean up add_msg_recurse X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Wed, 02 May 2018 16:00:03 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" prepare_message was being called twice for no reason. Probably just a cut-and-paste mistake. Signed-off-by: Paolo Bonzini --- 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=3DFalse): def add_msg_recurse(m, skip_patches, depth=3D0): a =3D prepare_message(request, m, True) a.indent_level =3D min(depth, 4) - r.append(prepare_message(request, m, True)) + r.append(a) replies =3D m.get_replies() non_patches =3D [x for x in replies if not x.is_patch] patches =3D [] --=20 2.17.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel