Skip to content

Commit

Permalink
another fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naumenkogs committed Dec 20, 2019
1 parent df73232 commit c56270c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remote_dumps/quagga_aggregate.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def dedup(asn_path):
def find_common_suffixes(prefix_asn_paths, common_asn_suffix):
for prefix, asn_lists in prefix_asn_paths.items():
asn_lists = [dedup(asn_list.split(' ')) for asn_list in asn_lists] # preprocess
asn_lists = [asn_list for asn_list in asn_lists if asn_list != []] # this very rarely happens in dumps
asn_lists = [asn_list for asn_list in asn_lists if asn_list != [] and asn_list != ['']] # this very rarely happens in dumps
asn_lists.sort(key = len)
cur_asn_suffix = asn_lists[0] # represents the common sub-path (from the end) of asns to a prefix
for asn_list in asn_lists[1:]:
Expand Down

0 comments on commit c56270c

Please sign in to comment.