From nobody Tue May 13 15:34:51 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; dkim=fail; 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 1538145950907524.9289458786051; Fri, 28 Sep 2018 07:45:50 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.27]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A070B80E7B; Fri, 28 Sep 2018 14:45:49 +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 913755E53C; Fri, 28 Sep 2018 14:45:49 +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 67BCE181A12F; Fri, 28 Sep 2018 14:45:49 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w8SEjlCa024560 for ; Fri, 28 Sep 2018 10:45:47 -0400 Received: by smtp.corp.redhat.com (Postfix) id BE7185E1C8; Fri, 28 Sep 2018 14:45:47 +0000 (UTC) Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.44]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B520217272 for ; Fri, 28 Sep 2018 14:45:45 +0000 (UTC) Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 806B830832CD for ; Fri, 28 Sep 2018 14:45:44 +0000 (UTC) Received: by mail-wr1-f47.google.com with SMTP id u12-v6so6681572wrr.4 for ; Fri, 28 Sep 2018 07:45:44 -0700 (PDT) Received: from donizetti.par1.mozilla.com ([2a00:8c40:243:232:de:fba5:535e:2dc2]) by smtp.gmail.com with ESMTPSA id n68-v6sm1884636wmn.5.2018.09.28.07.45.41 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 28 Sep 2018 07:45:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=kpwvRaa+stoRmXCP6xtA97kkIhmMMkMv4F0ZvvvIIeY=; b=Q28I/WAs5r8hOMKXwWR4Vl/o2bQm8xfTbGBo3/d0kRG4nZXC7rkCOMwehE7D+yz6Iy mnVM5XcQbI52JOpSSnyGIjRPGtyNgSOT2hE5RHEhCGZH2EDIc6n/4O6qAB/0fmnU2zaI Hypv6i4Zg4pJY8K6IEGOK6EHD1xSCPhkdnMfvMRdMV0JorNF2C1m20s+5ZbTPthAldhI n6iMSfINHi2gn5GPzY3YdNCFzR2uDUsqL96VjinjNe+TYtm74eWOgMqSA8Bnwva79GdM ++WSn+0esnMIIAgKgs6/Si3PYb8HGafaq/cooCDj5petVLIsVFM8nxBHTGxifzkZhb83 JN/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=kpwvRaa+stoRmXCP6xtA97kkIhmMMkMv4F0ZvvvIIeY=; b=F6zuAOLugSoiZrdJzZAL+ByAsEhZEI4JS6IUxVFOS6P6wWGufL4ldnvqlpF1scMnt5 Rd/Km8a7CVdFThtFxwHipuQa7nj5sskWVYqAM3Mjq56sHbTtIOB0dmHJ2Qa+LBhA+HWB sPvI7cV7Ba5/SoXgKRX458z5OhCE39ALj8dqyYAJfX3OneB9LEDvp2k+Ezh/UKYOV4bg 4/twntrZA3SnaF9sHVam3L5ZQxuNx1fSYUJTXbxOCd56wm4OZtpUpft0NQunVIhkpYO0 VlxPiNrdQNgbr2C1CfWnN/ulMd5w4ev8knOHl13l3pWj8kfbTBeiv6Rv8NzyO3tk3gMJ CtVw== X-Gm-Message-State: ABuFfoif12+8vUFBJsdWSl+ZLEKzU4VXqa2T3g7jAFclhXZyyvrB7K/6 s2O+VG4HFXbKOPpcnT8gsl2VaK8zTFI= X-Google-Smtp-Source: ACcGV62zg0yke8eFSojMCvUjlQdvY1w+F1LP64Yji01w+a8IB9DwXicbT4dheK+g5suf2eDNPPrhRA== X-Received: by 2002:adf:f991:: with SMTP id f17-v6mr12818171wrr.105.1538145942666; Fri, 28 Sep 2018 07:45:42 -0700 (PDT) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Fri, 28 Sep 2018 16:45:29 +0200 Message-Id: <20180928144537.5051-3-pbonzini@redhat.com> In-Reply-To: <20180928144537.5051-1-pbonzini@redhat.com> References: <20180928144537.5051-1-pbonzini@redhat.com> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 28 Sep 2018 14:45:44 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.44]); Fri, 28 Sep 2018 14:45:44 +0000 (UTC) for IP:'209.85.221.47' DOMAIN:'mail-wr1-f47.google.com' HELO:'mail-wr1-f47.google.com' FROM:'paolo.bonzini@gmail.com' RCPT:'' X-RedHat-Spam-Score: 0.488 (DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_PASS) 209.85.221.47 mail-wr1-f47.google.com 209.85.221.47 mail-wr1-f47.google.com X-RedHat-Possible-Forgery: Paolo Bonzini X-Scanned-By: MIMEDefang 2.84 on 10.5.110.44 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH v2 02/10] search: fix matches on property value 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.84 on 10.5.11.27 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 28 Sep 2018 14:45:49 +0000 (UTC) X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDMRC_0 RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Since we have changed the fields to JSONField, we do not need to pass the values as strings. Signed-off-by: Paolo Bonzini --- api/search.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/search.py b/api/search.py index e330ae8..17424c3 100644 --- a/api/search.py +++ b/api/search.py @@ -164,7 +164,7 @@ Search text keyword in the email message. Example: q =3D Q(subject__contains=3D'[PULL') | Q(subject__contains= =3D'[GIT PULL') elif cond =3D=3D "reviewed": q =3D Q(properties__name=3D"reviewed", - properties__value=3D"true") + properties__value=3DTrue) elif cond in ("obsoleted", "old"): q =3D Q(properties__name=3D"obsoleted-by", properties__value__isnull=3DFalse) & \ @@ -175,7 +175,7 @@ Search text keyword in the email message. Example: results__status=3DResult.SUCCESS) elif cond =3D=3D "tested": q =3D Q(properties__name=3D"testing.done", - properties__value=3D"true") + properties__value=3DTrue) elif cond =3D=3D "merged": q =3D Q(is_merged=3DTrue) else: --=20 2.17.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel