Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions resolver/rsv_monthly.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,13 @@ def get_columns(self, summary_columns):

def add_cc_as(self, row):
cc = row['CC']
if not isinstance(cc, str) or len(cc) != 2:
cc = ' '
asn = row['AS']
if not isinstance(asn, str) or not asn.startswith('AS'):
asn = 'AS0'
key = cc + '-' + asn

if not key in self.monthly_per_isp:
self.monthly_per_isp[key] = per_key_sum(row, self.summed_columns, self.has_max_delay, self.has_average_delay, self.has_sum_delays)
else:
Expand Down
Loading