Changeset 83384 in vbox for trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
- Timestamp:
- Mar 24, 2020 2:46:06 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136601
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testmanager/core/testbox.py
r83364 r83384 59 59 ksParam_iSchedPriority = 'TestBoxInSchedGroup_iSchedPriority'; 60 60 61 kasAllowNullAttributes = [ ' idTestBox', 'tsEffective', 'tsExpire', 'uidAuthor', ]61 kasAllowNullAttributes = [ 'tsEffective', 'tsExpire', 'uidAuthor', ] 62 62 63 63 kiMin_iSchedPriority = 0; … … 858 858 if not aiSortColumns: 859 859 aiSortColumns = [self.kiSortColumn_sName,]; 860 asSortColumns = [self.kdSortColumnMap[i] for i in aiSortColumns]; 861 asSortColumns.append('TestBoxesInSchedGroups.idTestBox'); 860 862 861 863 if tsNow is None: … … 869 871 WHERE TestBoxesInSchedGroups.idSchedGroup = %s 870 872 AND TestBoxesInSchedGroups.tsExpire = 'infinity'::TIMESTAMP 871 ORDER BY ''' + ', '.join([self.kdSortColumnMap[i] for i in aiSortColumns]) + ''' 872 ''', (idSchedGroup, )); 873 ORDER BY ''' + ', '.join(asSortColumns), (idSchedGroup, )); 873 874 else: 874 875 self._oDb.execute(''' … … 881 882 AND TestBoxesWithStrings.tsEffective <= %s 882 883 WHERE TestBoxesInSchedGroups.idSchedGroup = %s 883 AND TestBoxesInSchedGroups.tsExpire > % 884 AND TestBoxesInSchedGroups.tsEffective <= % 885 ORDER BY ''' + ', '.join([self.kdSortColumnMap[i] for i in aiSortColumns]) + ''' 886 ''', (tsNow, tsNow, idSchedGroup, tsNow, tsNow, )); 884 AND TestBoxesInSchedGroups.tsExpire > %s 885 AND TestBoxesInSchedGroups.tsEffective <= %s 886 ORDER BY ''' + ', '.join(asSortColumns), (tsNow, tsNow, idSchedGroup, tsNow, tsNow, )); 887 887 888 888 aoRows = [];
Note:
See TracChangeset
for help on using the changeset viewer.