diff options
author | Jordan <me@jordan.im> | 2020-02-17 14:36:27 -0700 |
---|---|---|
committer | Jordan <me@jordan.im> | 2020-02-17 14:36:27 -0700 |
commit | 243e126fb80a475aef51f9b0cbe3dd8c7b228f20 (patch) | |
tree | f723fc81b0293067a9fdd1253ffb0fe01fbd4cb6 /tor-metrics/relays.py | |
parent | 0881b659d967a2d7f1725a32e2e95a8cbaf6d401 (diff) | |
download | allium-243e126fb80a475aef51f9b0cbe3dd8c7b228f20.tar.gz allium-243e126fb80a475aef51f9b0cbe3dd8c7b228f20.zip |
truncate long platforms, flag links globally
Diffstat (limited to 'tor-metrics/relays.py')
-rw-r--r-- | tor-metrics/relays.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tor-metrics/relays.py b/tor-metrics/relays.py index c8b94ea..8b28f56 100644 --- a/tor-metrics/relays.py +++ b/tor-metrics/relays.py @@ -69,6 +69,7 @@ class Relays: ''' for relay in json_data['relays']: relay['platform'] = relay['platform'].split(' on ', 1)[1].split(' ')[0] + relay['platform'] = relay['platform'].split('/')[-1] # GNU/* return json_data def fix_missing_observed_bandwidth(self, json_data): |