Fix fencepost error when fetching autopkgtest results from sqlite

When querying swift there is no way to take results only newer than a
specified point, you can only query newer than or equal to.  But for sqlite
we can absolutely use > instead of >= and avoid re-processing results we've
already seen.
less-recipients
Steve Langasek 3 years ago
parent bbdd8105b2
commit 36459dcdb7

@ -1024,7 +1024,7 @@ class AutopkgtestPolicy(BasePolicy):
' r.run_id FROM test AS t ' ' r.run_id FROM test AS t '
'LEFT JOIN result AS r ON t.id=r.test_id ' 'LEFT JOIN result AS r ON t.id=r.test_id '
'WHERE t.release=? AND t.arch=? ' 'WHERE t.release=? AND t.arch=? '
'AND t.package=? AND r.run_id >= ?', 'AND t.package=? AND r.run_id > ?',
(self.options.series, arch, src, latest_run_id)): (self.options.series, arch, src, latest_run_id)):
exitcode, ver, triggers, run_id = row exitcode, ver, triggers, run_id = row
if not ver: if not ver:

Loading…
Cancel
Save