summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2010-01-02 21:41:26 +0000
committerEric S. Raymond <esr@thyrsus.com>2010-01-02 21:41:26 +0000
commitf46e4a8da378d9287824c7ce84ef296effaa3c94 (patch)
tree2ef00e808ebcd620258022a981b3b5849647e342 /gpscap.py
parentbb102ec7ae98586c95874fb0aa66ee3c59cad8c5 (diff)
downloadgpsd-f46e4a8da378d9287824c7ce84ef296effaa3c94.tar.gz
Fix a mismatch between gppscap.py and the report CGI.
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/gpscap.py b/gpscap.py
index a57716d2..ff5ca2e5 100644
--- a/gpscap.py
+++ b/gpscap.py
@@ -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'/>"