projects
/
selectricity-live
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove useless puts calls; fix gmap api key for selectricity.org
[selectricity-live]
/
app
/
views
/
quickvote
/
list_voters.rhtml
diff --git
a/app/views/quickvote/list_voters.rhtml
b/app/views/quickvote/list_voters.rhtml
index be11290b444cad0bb0bbb0258b4e264bb60343ee..ea276d7b6a7d50570ae059e5348ba82ca6b8b2ab 100644
(file)
--- a/
app/views/quickvote/list_voters.rhtml
+++ b/
app/views/quickvote/list_voters.rhtml
@@
-27,14
+27,10
@@
voter.ipaddress =~ /^172\.[1-3]/
%>
<% w=nil
voter.ipaddress =~ /^172\.[1-3]/
%>
<% w=nil
- puts "WHOIS #{voter.ipaddress}"
if Cache and w=Cache.get("WHOIS:#{voter.ipaddress}")
elsif Cache
if Cache and w=Cache.get("WHOIS:#{voter.ipaddress}")
elsif Cache
- puts "CREATE"
w= Whois::Whois.new(IPAddr.new(voter.ipaddress),true)
w= Whois::Whois.new(IPAddr.new(voter.ipaddress),true)
- puts "SEARCH"
w.search_whois
w.search_whois
- puts "DONE"
Cache.set("WHOIS:#{voter.ipaddress}", w)
else
w= Whois::Whois.new(IPAddr.new(voter.ipaddress),true)
Cache.set("WHOIS:#{voter.ipaddress}", w)
else
w= Whois::Whois.new(IPAddr.new(voter.ipaddress),true)
Benjamin Mako Hill
||
Want to submit a patch?