Message ID | db6aa70f-1c53-4442-ed2a-a9f4cb6ecb95@ipfire.org |
---|---|
State | Accepted |
Commit | 0cb1a88c942e599329f87a04f1dde4ec4376b038 |
Headers |
Return-Path: <location-bounces@lists.ipfire.org> 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 <patchwork@web04.haj.ipfire.org>; 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 <location@lists.ipfire.org>; 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 <location@lists.ipfire.org>; 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" <location@lists.ipfire.org> From: =?utf-8?q?Peter_M=C3=BCller?= <peter.mueller@ipfire.org> Subject: [PATCH] location.in: fix search_networks() function call Message-ID: <db6aa70f-1c53-4442-ed2a-a9f4cb6ecb95@ipfire.org> Date: Sun, 16 May 2021 22:35:15 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-BeenThere: location@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <location.lists.ipfire.org> List-Unsubscribe: <https://lists.ipfire.org/mailman/options/location>, <mailto:location-request@lists.ipfire.org?subject=unsubscribe> List-Archive: <http://lists.ipfire.org/pipermail/location/> List-Post: <mailto:location@lists.ipfire.org> List-Help: <mailto:location-request@lists.ipfire.org?subject=help> List-Subscribe: <https://lists.ipfire.org/mailman/listinfo/location>, <mailto:location-request@lists.ipfire.org?subject=subscribe> Errors-To: location-bounces@lists.ipfire.org Sender: "Location" <location-bounces@lists.ipfire.org> |
Series |
location.in: fix search_networks() function call
|
|
Commit Message
Peter Müller
May 16, 2021, 8:35 p.m. UTC
Fixes: #12617
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
---
src/python/location.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
Thanks. Merged. > On 16 May 2021, at 21:35, Peter Müller <peter.mueller@ipfire.org> wrote: > > Fixes: #12617 > > Signed-off-by: Peter Müller <peter.mueller@ipfire.org> > --- > 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() > -- > 2.26.2
Michael Tremer wrote: > Thanks. Merged. > >> On 16 May 2021, at 21:35, Peter Müller <peter.mueller@ipfire.org> wrote: >> >> Fixes: #12617 >> >> Signed-off-by: Peter Müller <peter.mueller@ipfire.org> >> --- >> 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) High time. I reported this already 1 April: https://lists.ipfire.org/pipermail/location/2021-April/000263.html
Hello, Thank you for that. It would be even better if you would follow the guidelines here, so that the patch can be merged into the repository easily: https://wiki.ipfire.org/devel/submit-patches Best, -Michael > On 18 May 2021, at 12:04, Gisle Vanem <gisle.vanem@gmail.com> wrote: > > Michael Tremer wrote: > >> Thanks. Merged. >>> On 16 May 2021, at 21:35, Peter Müller <peter.mueller@ipfire.org> wrote: >>> >>> Fixes: #12617 >>> >>> Signed-off-by: Peter Müller <peter.mueller@ipfire.org> >>> --- >>> 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) > > High time. I reported this already 1 April: > https://lists.ipfire.org/pipermail/location/2021-April/000263.html > > -- > --gv
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()