Skip to content

Commit

Permalink
chore: add placeholder for ix without rs
Browse files Browse the repository at this point in the history
  • Loading branch information
Potat0000 committed Mar 5, 2024
1 parent 620b4b8 commit f0ac642
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def IP(ip):
{
'归属': escape(i['name']),
'网段': f"`{str(IPy.IP(i['ip']))}`",
'RS': f"`{i['rs']['asn']}`<br>`{str(IPy.IP(i['rs']['ip']))}`" if 'rs' in i else '',
'RS': f"`{i['rs']['asn']}`<br>`{str(IPy.IP(i['rs']['ip']))}`" if 'rs' in i else 'N/A',
}
for i in sorted(ix, key=lambda x: IP(x['ip']).int())
]
Expand Down

0 comments on commit f0ac642

Please sign in to comment.