mirror of
https://github.com/manuelkasper/AS-Stats.git
synced 2025-02-20 11:44:12 +08:00
Merge pull request #60 from maxlareo/master
generate-asinfo.py: get country code from last field
This commit is contained in:
commit
104d4c38b7
@ -9,6 +9,11 @@ for line in sys.stdin:
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
try:
|
||||||
|
data,country = data.rsplit(',',1)
|
||||||
|
except:
|
||||||
|
data = data
|
||||||
|
|
||||||
if data == '-Private Use AS-':
|
if data == '-Private Use AS-':
|
||||||
data = 'Private Use AS'
|
data = 'Private Use AS'
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user