]> git.ipfire.org Git - people/ms/libloc.git/commitdiff
export: Remove filtering for flags
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Nov 2020 13:19:04 +0000 (13:19 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 18 Nov 2020 13:19:04 +0000 (13:19 +0000)
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 <michael.tremer@ipfire.org>
src/python/export.py

index 67e437fe9ab6fc1de1237c2e6238f5c465ad2486..42199576684cb8b7fe900483e33de69eece44dc4 100644 (file)
@@ -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: