~mfisch/onehundredscopes/unity-stock-ticker-lens-precise

« back to all changes in this revision

Viewing changes to yahoostock-scope

  • Committer: Matthew Fischer
  • Date: 2012-02-19 06:52:10 UTC
  • Revision ID: matthew.fischer@canonical.com-20120219065210-9gpml9j2hfic3wdo
shows change with an arrow

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
                return
41
41
            for quote in quotes:
42
42
                volume_str = ys.getVolumeStr(quote['volume'])
43
 
                comment = "%s\n%s@%s\n%s" % (quote['name'], 
44
 
                    quote['lastVal'], quote['lastTime'], volume_str)
 
43
                change_str = ys.getChangeStr(quote['change'])
 
44
                comment = "%s\n%s@%s\n%s\n%s" % (quote['name'], 
 
45
                    quote['lastVal'], quote['lastTime'], volume_str, change_str)
45
46
                model.append(ys.getQuoteUrl(quote['symbol']),
46
47
                             "/opt/extras.ubuntu.com/unity-stock-ticker-lens/ticker_icon.png",
47
48
                             self.lens.quotes,