@@ -113,8 +113,8 @@ function outputTestReportsForVersion(string $getVersion) {
113
113
114
114
// Do we add expected failed ?
115
115
if (($ _GET ['expect ' ] ?? 0 ) == 1 ) {
116
- $ query = 'SELECT \'xfail \' as xfail, test_name,COUNT(expectedfail.id) as cpt, \'- \' as variations,
117
- datetime(date) as date FROM expectedfail,reports WHERE expectedfail.id_report = reports.id
116
+ $ query = 'SELECT \'xfail \' as xfail, test_name,COUNT(expectedfail.id) as cpt, \'- \' as variations,
117
+ datetime(date) as date FROM expectedfail,reports WHERE expectedfail.id_report = reports.id
118
118
GROUP BY test_name ORDER BY cpt DESC LIMIT :limit ' ;
119
119
$ stmt = $ database ->prepare ($ query );
120
120
$ stmt ->bindValue (':limit ' , $ limit , SQLITE3_INTEGER );
@@ -126,12 +126,12 @@ function outputTestReportsForVersion(string $getVersion) {
126
126
}
127
127
}
128
128
129
- $ query = 'SELECT failed.test_name,COUNT(failed.id) as cpt,COUNT(DISTINCT failed.diff) as variations,
130
- datetime(reports.date) as date,success.id as success, r2.id as failedci FROM failed, reports
129
+ $ query = 'SELECT failed.test_name,COUNT(failed.id) as cpt,COUNT(DISTINCT failed.diff) as variations,
130
+ datetime(reports.date) as date,success.id as success, r2.id as failedci FROM failed, reports
131
131
LEFT JOIN success ON success.test_name=failed.test_name
132
132
LEFT JOIN failed f2 ON (f2.test_name=failed.test_name AND f2.output = "")
133
133
LEFT JOIN reports r2 ON (f2.id_report = r2.id AND r2.user_email="ciqa")
134
- WHERE failed.id_report = reports.id
134
+ WHERE failed.id_report = reports.id
135
135
GROUP BY failed.test_name ORDER BY cpt DESC LIMIT :limit ' ;
136
136
$ stmt = $ database ->prepare ($ query );
137
137
$ stmt ->bindValue (':limit ' , $ limit , SQLITE3_INTEGER );
0 commit comments