From e5599f85424ce69f0a781d11903fbef19bd2777a Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 18 Jun 2018 10:58:33 +0100 Subject: [PATCH] tools: Actually print the correct subnet to file Signed-off-by: Michael Tremer --- tools/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3