From patchwork Sun May 16 20:35:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Peter_M=C3=BCller?= X-Patchwork-Id: 4291 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4FjvCX48CDz3wbf for ; Sun, 16 May 2021 20:35:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4FjvCX1ttDz1Zf; Sun, 16 May 2021 20:35:20 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4FjvCW5gKfz2xX3; Sun, 16 May 2021 20:35:19 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4FjvCV3jf1z2xF1 for ; Sun, 16 May 2021 20:35:18 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4FjvCT29mkzhP for ; Sun, 16 May 2021 20:35:17 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1621197317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lLBY534Jkr0Y6WvRRPUeUS56oB+1RDufwyMbfUjUcgs=; b=LVskoVq9wSq+Vc/5vtI8hLLg7dsuyij4xCGbKWEiTdCTCerunv8WpYX3SYRVF1yBuHoFNh QoxvWaBF5kvFjvDw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1621197317; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lLBY534Jkr0Y6WvRRPUeUS56oB+1RDufwyMbfUjUcgs=; b=nAs8wGUYdJwmQiTc1OjZep8qkImnmQFKyTfdwAqSoFdmVCJPFHTUukCO1srZ9jzWY644On dYuk8RsewAu4UTIjd+rFvSmxCCn1jxhm0NNVRGaBxNN4FRjpTfWORWyrWPd2aKFP4yC/S7 O+GWyGwpBdMJOz7hX/E9D3TjsC7qBRi5XJBF6KANRaLICGFNj78TMsmjMvCk8NysST3swG oXd2zFqCVpbacJmjeHXuIjZCS46QuiPK08Mt7Lp9y1fOAPSX53coA7Asc4F9dwFgtYbYRa Ygzzv31SmRwyxBos3gkr1TI+S9V+do81m/VFqGipIoChz75WXP7M2nt/lrK6Hg== To: "IPFire: Location" From: =?utf-8?q?Peter_M=C3=BCller?= Subject: [PATCH] location.in: fix search_networks() function call Message-ID: Date: Sun, 16 May 2021 22:35:15 +0200 MIME-Version: 1.0 Content-Language: en-US X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: location-bounces@lists.ipfire.org Sender: "Location" Fixes: #12617 Signed-off-by: Peter Müller --- src/python/location.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/location.in b/src/python/location.in index ad2ccf5..e02b4e8 100644 --- a/src/python/location.in +++ b/src/python/location.in @@ -506,7 +506,7 @@ class CLI(object): f = writer(sys.stdout, prefix=country_code) # Print all matching networks - for n in db.search_networks(country_code=country_code, family=ns.family): + for n in db.search_networks(country_codes=[country_code], family=ns.family): f.write(n) f.finish()