diff mbox

[Branch,~linaro-validation/lava-dashboard/trunk] Rev 349: Fixed wrong parameter for getting test names.

Message ID 20120926153020.21136.69659.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Milo Casagrande Sept. 26, 2012, 3:30 p.m. UTC
------------------------------------------------------------
revno: 349
fixes bug: https://launchpad.net/bugs/1052545
committer: Milo Casagrande <milo@ubuntu.com>
branch nick: bug1052545
timestamp: Wed 2012-09-26 16:42:36 +0200
message:
  Fixed wrong parameter for getting test names.
modified:
  dashboard_app/xmlrpc.py


--
lp:lava-dashboard
https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk

You are subscribed to branch lp:lava-dashboard.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-dashboard/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'dashboard_app/xmlrpc.py'
--- dashboard_app/xmlrpc.py	2012-09-26 13:55:57 +0000
+++ dashboard_app/xmlrpc.py	2012-09-26 14:42:36 +0000
@@ -408,7 +408,7 @@ 
             'is_deserialized': bundle.is_deserialized
             } for bundle in bundle_stream.bundles.all().order_by("uploaded_on")]
 
-    @xml_rpc_signature('str', 'str')
+    @xml_rpc_signature('str')
     def get_test_names(self, device_type=None):
         """
         Name
@@ -433,10 +433,10 @@ 
             for test in Test.objects.filter(
                 test_runs__attributes__name='target.device_type',
                 test_runs__attributes__value=device_type).distinct():
-                test_names.append(test.name)
+                test_names.append(test.test_id)
         else:
             for test in Test.objects.all():
-                test_names.append(test.name)
+                test_names.append(test.test_id)
         return test_names
 
     def deserialize(self, content_sha1):