Add country comment to the API

master
Alice 7 years ago
parent 74c0be3657
commit 6f9a832964

@ -398,8 +398,9 @@ def api_auth(request):
def api_locations(request): def api_locations(request):
def format_loc(cc, l): def format_loc(cc, l):
msg = ' [%s]' % l['message'] if l['message'] else ''
return { return {
'country_name': l['country_name'], 'country_name': l['country_name'] + msg,
'country_code': cc, 'country_code': cc,
'hostname': l['hostname'], 'hostname': l['hostname'],
'bandwidth': l['bandwidth'], 'bandwidth': l['bandwidth'],

Loading…
Cancel
Save