--- a/candolint/handlers.py Fri Oct 06 16:22:57 2017 +0800
+++ b/candolint/handlers.py Fri Oct 06 16:24:27 2017 +0800
.select(*Check.get_light_fields())
.where(Check.project == check.project)
- .where(Check.success == True)
.where(Check.change != check.change)
.where(Change.branch == check.change.branch)
.where(Check.ordinal < check.ordinal)
.select(*Check.get_light_fields())
.where(Check.project == check.project)
- .where(Check.success == True)
.where(Change.branch == check.change.branch)
.order_by(Check.ordinal.desc()))
more = checks.where(Check.ordinal >= check.ordinal).count()