]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
location.in: fix search_networks() function call
authorPeter Müller <peter.mueller@ipfire.org>
Sun, 16 May 2021 20:35:15 +0000 (22:35 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 May 2021 10:30:45 +0000 (10:30 +0000)
Fixes: #12617
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/location.in

index ad2ccf50067d11e9ae8d9cdd3daf4f78cc96525b..e02b4e891d3b0844758267ce7d686369f696d8a4 100644 (file)
@@ -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()