[tor-commits] [atlas/master] Fix country display in search results

art at torproject.org art at torproject.org
Mon Mar 5 23:12:03 UTC 2012


commit e4ba1baac62cfa6109bae5f47b11aa9b3f4b0177
Author: Arturo Filastò <hellais at gmail.com>
Date:   Fri Mar 2 16:18:09 2012 -0800

    Fix country display in search results
---
 js/models/relay.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/js/models/relay.js b/js/models/relay.js
index c0f5a10..f43593c 100644
--- a/js/models/relay.js
+++ b/js/models/relay.js
@@ -133,7 +133,7 @@ define([
                 var bw = relay.advertised_bandwidth;
                 relay.bandwidth = bw;
                 relay.bandwidth_hr = hrBandwidth(bw);
-                relay.countryname = CountryCodes[relay.country];
+                relay.countryname = CountryCodes[relay.country.toLowerCase()];
                 relay.uptime = model.parsedate(relay.last_restarted);
                 relay.uptime_hr = relay.uptime.hr;
                 //console.log(relay.uptime.hrfull);





More information about the tor-commits mailing list