appdb/include testData.php

WineHQ wineowner at wine.codeweavers.com
Tue Mar 27 19:09:12 CDT 2007


ChangeSet ID:	31014
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2007/03/27 19:09:12

Modified files:
	include        : testData.php 

Log message:
	Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
	Fix display of latest testData to exclude queued entries

Patch: http://cvs.winehq.org/patch.py?id=31014

Old revision  New revision  Changes     Path
 1.34          1.35          +4 -1       appdb/include/testData.php

Index: appdb/include/testData.php
diff -u -p appdb/include/testData.php:1.34 appdb/include/testData.php:1.35
--- appdb/include/testData.php:1.34	28 Mar 2007  0: 9:12 -0000
+++ appdb/include/testData.php	28 Mar 2007  0: 9:12 -0000
@@ -468,7 +468,10 @@ class testData{
     /* retrieve the latest test result for a given version id */
     function get_test_for_versionid($iVersionId)
     {
-        $sQuery = "SELECT testingId from testResults where versionId = '?' 
+        $sQuery = "SELECT testingId FROM testResults WHERE
+                versionId = '?'
+                AND
+                queued = 'false'
                      ORDER BY testedDate DESC limit 1";
         $hResult = query_parameters($sQuery, $iVersionId);
         if(!$hResult)



More information about the wine-cvs mailing list