mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-03-11 19:31:08 +00:00
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.
This commit is contained in:
parent
bbdd8105b2
commit
36459dcdb7
@ -1024,7 +1024,7 @@ class AutopkgtestPolicy(BasePolicy):
|
||||
' r.run_id FROM test AS t '
|
||||
'LEFT JOIN result AS r ON t.id=r.test_id '
|
||||
'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)):
|
||||
exitcode, ver, triggers, run_id = row
|
||||
if not ver:
|
||||
|
Loading…
x
Reference in New Issue
Block a user