git ssb

0+

cel / ledger-scripts



Commit 96d82d9659c1215f041747041e3ef3ae75f7e613

Fix rate-exchange

Charles Lehner committed on 11/8/2015, 2:42:58 PM
Parent: a175096b83d9b3008dc5b2a06b16c310b92b63b4

Files changed

getquotechanged
getquoteView
@@ -137,11 +137,11 @@
137137 if ($rateexchange_markets{$symbol}) {
138138 if ($rateexchange_markets{$symbol} != 1) {
139139 $symbol = $rateexchange_markets{$symbol};
140140 }
141- if (my $info = json_req('http://rate-exchange.appspot.com/currency?to=USD&from=' . $symbol)) {
142- if ($info and $info->{rate}) {
143- return '$' . $info->{rate};
141+ if (my $info = json_req('https://rate-exchange.herokuapp.com/fetchRate?to=USD&from=' . $symbol)) {
142+ if ($info and $info->{Rate}) {
143+ return '$' . $info->{Rate};
144144 }
145145 }
146146 }
147147

Built with git-ssb-web