From f0ac64227a74fcec94533bac73dce2e4bcb8b6e9 Mon Sep 17 00:00:00 2001 From: Potat0 Date: Tue, 5 Mar 2024 23:08:59 +0800 Subject: [PATCH] chore: add placeholder for ix without rs --- script/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/generator.py b/script/generator.py index 27188a7..e6a8176 100644 --- a/script/generator.py +++ b/script/generator.py @@ -205,7 +205,7 @@ def IP(ip): { '归属': escape(i['name']), '网段': f"`{str(IPy.IP(i['ip']))}`", - 'RS': f"`{i['rs']['asn']}`
`{str(IPy.IP(i['rs']['ip']))}`" if 'rs' in i else '', + 'RS': f"`{i['rs']['asn']}`
`{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()) ]