lib/lita/handlers/onewheel_election_cnn.rb in lita-onewheel-election-cnn-4.0.1 vs lib/lita/handlers/onewheel_election_cnn.rb in lita-onewheel-election-cnn-4.0.2

- old
+ new

@@ -55,10 +55,10 @@ bluecount.times { blueredstr += '█' } blueredstr += "\x0300" (50 - bluecount - redcount).times { blueredstr += '-' } blueredstr += "\x0304" redcount.times { blueredstr += '█' } - response.reply "Clinton #{votes['blue']['percentage']}% #{votes['blue']['popular']} |#{blueredstr}\x0300| Trump #{votes['blue']['percentage']}% #{votes['blue']['popular']}" + response.reply "Clinton #{votes['blue']['percentage']}% #{votes['blue']['popular']} |#{blueredstr}\x0300| Trump #{votes['red']['percentage']}% #{votes['red']['popular']}" end def election_by_state(response) Lita.logger.debug 'get_source started' results = JSON.parse(RestClient.get('http://data.cnn.com/ELECTION/2016/full/P.full.json'))