diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-01-02 21:41:26 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-01-02 21:41:26 +0000 |
commit | f46e4a8da378d9287824c7ce84ef296effaa3c94 (patch) | |
tree | 2ef00e808ebcd620258022a981b3b5849647e342 /gpscap.py | |
parent | bb102ec7ae98586c95874fb0aa66ee3c59cad8c5 (diff) | |
download | gpsd-f46e4a8da378d9287824c7ce84ef296effaa3c94.tar.gz |
Fix a mismatch between gppscap.py and the report CGI.
Diffstat (limited to 'gpscap.py')
-rw-r--r-- | gpscap.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -114,15 +114,15 @@ class GPSDictionary(ConfigParser.RawConfigParser): testfield += tested if self.has_option(dev, "noconfigure"): testfield += "<img title='Requires -b option' src='noconfigure.png'>" - if self.get(dev, "status") == "excellent": + if self.get(dev, "rating") == "excellent": testfield += "<img src='star.png'/><img src='star.png'/><img src='star.png'/><img src='star.png'/>" - elif self.get(dev, "status") == "good": + elif self.get(dev, "rating") == "good": testfield += "<img src='star.png'/><img src='star.png'/'><img src='star.png'/>" - elif self.get(dev, "status") == "fair": + elif self.get(dev, "rating") == "fair": testfield += "<img src='star.png'/><img src='star.png'/>" - elif self.get(dev, "status") == "poor": + elif self.get(dev, "rating") == "poor": testfield += "<img src='star.png'/>" - elif self.get(dev, "status") == "broken": + elif self.get(dev, "rating") == "broken": testfield += "<img title='Device is broken' src='bomb.png'/>" if self.has_option(dev, "usbchip") and self.get(dev, "usbchip") in hotpluggables: testfield += "<img src='hotplug.png'/>" |