From: Michael Tremer Date: Mon, 18 Jun 2018 09:58:33 +0000 (+0100) Subject: tools: Actually print the correct subnet to file X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5599f85424ce69f0a781d11903fbef19bd2777a;p=location%2Flocation-database.git tools: Actually print the correct subnet to file Signed-off-by: Michael Tremer --- diff --git a/tools/base.py b/tools/base.py index 441cceb..3f91595 100644 --- a/tools/base.py +++ b/tools/base.py @@ -166,7 +166,7 @@ class RIRParser(object): with self.db.cursor() as c: # Write all networks c.execute("""SELECT DISTINCT ON (routes.route) - inetnums.network, routes.asn, inetnums.country, inetnums.netname, inetnums.description + routes.route, routes.asn, inetnums.country, inetnums.netname, inetnums.description FROM routes LEFT JOIN inetnums ON family(routes.route) = family(inetnums.network)