From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4FC9215815E for ; Sat, 10 Feb 2024 05:30:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 75172E2AD9; Sat, 10 Feb 2024 05:30:29 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 515F2E2AD9 for ; Sat, 10 Feb 2024 05:30:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 45EB3343088 for ; Sat, 10 Feb 2024 05:30:28 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9938C118C for ; Sat, 10 Feb 2024 05:30:26 +0000 (UTC) From: "Robin H. Johnson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Robin H. Johnson" Message-ID: <1707543018.18a4ab9ac73695a7e55bc4b17b428967629f5104.robbat2@gentoo> Subject: [gentoo-commits] proj/rbot-bugzilla:master commit in: / X-VCS-Repository: proj/rbot-bugzilla X-VCS-Files: bugzilla.rb X-VCS-Directories: / X-VCS-Committer: robbat2 X-VCS-Committer-Name: Robin H. Johnson X-VCS-Revision: 18a4ab9ac73695a7e55bc4b17b428967629f5104 X-VCS-Branch: master Date: Sat, 10 Feb 2024 05:30:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 16058ed6-e140-40ca-a12f-5f407dfd4c98 X-Archives-Hash: f286bfa15f96f69cdf58bb09fa9ccb40 commit: 18a4ab9ac73695a7e55bc4b17b428967629f5104 Author: Robin H. Johnson gentoo org> AuthorDate: Sat Feb 10 05:30:18 2024 +0000 Commit: Robin H. Johnson gentoo org> CommitDate: Sat Feb 10 05:30:18 2024 +0000 URL: https://gitweb.gentoo.org/proj/rbot-bugzilla.git/commit/?id=18a4ab9a fix: cannot compare string and int Signed-off-by: Robin H. Johnson gentoo.org> bugzilla.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bugzilla.rb b/bugzilla.rb index ed23915..5000e4a 100644 --- a/bugzilla.rb +++ b/bugzilla.rb @@ -214,7 +214,7 @@ class BugzillaPlugin < Plugin end def max_announce - @registry["zilla.#{name}.max_announce"] || 5 + @registry["zilla.#{name}.max_announce"]&.to_i || 5 end def max_announce=(val) @@ -429,7 +429,7 @@ class BugzillaPlugin < Plugin buglist = search(recent_url) buglist.delete_at(0) - upper_bound = [buglist.size, max_announce].min + upper_bound = [buglist.size, max_announce&.to_i].min if (buglist.size > upper_bound) first_skip = buglist[0][0].to_i