From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gisle Vanem To: location@lists.ipfire.org Subject: Error in ' list-networks-by-cc' Date: Thu, 01 Apr 2021 13:36:50 +0200 Message-ID: <4b20a845-4674-71d1-84f6-b0da2e4c87c1@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2581863469422321192==" List-Id: --===============2581863469422321192== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable When issuing: location.py list-networks-by-cc XX I get this error: for n in db.search_networks(country_code=3Dcountry_code, family=3Dns.famil= y): TypeError: 'country_code' is an invalid keyword argument for this function But this works better: @@ -506,7 +506,7 @@ f =3D writer(sys.stdout, prefix=3Dcountry_code) # Print all matching networks - for n in db.search_networks(country_code=3Dcountry_code, family=3Dns.fam= ily): + for n in db.search_networks(country_codes=3D[country_code.upper()], fami= ly=3Dns.family): f.write(n) --- with the added bonus that I can do 'no' or 'NO'. --=20 --gv --===============2581863469422321192==--