From bce0c9295ff8ff9488f24babe01ce851228d0b1e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 18 Nov 2020 13:19:04 +0000 Subject: [PATCH] export: Remove filtering for flags The filter is an AND filter and if we set the flags from the special country codes, we won't get back much. Signed-off-by: Michael Tremer --- src/python/export.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/python/export.py b/src/python/export.py index 67e437f..4219957 100644 --- a/src/python/export.py +++ b/src/python/export.py @@ -187,15 +187,9 @@ class Exporter(object): country_code for country_code in countries if not country_code in FLAGS.values() ] - # Collect flags - flags = 0 - for flag in FLAGS: - if FLAGS[flag] in countries: - flags |= flag - # Get all networks that match the family networks = self.db.search_networks(family=family, - country_codes=country_codes, asns=asns, flags=flags, flatten=True) + country_codes=country_codes, asns=asns, flatten=True) # Walk through all networks for network in networks: -- 2.39.2