- Please make sure the indention is less confusing by using an intermediate variable for the states, e.g. "unfinished_states".
+ if status is None or status in [
+ BuildStatus.NEEDSBUILD,
+ BuildStatus.BUILDING,
+ BuildStatus.SUPERSEDED]: result_set.order_by( Desc(BuildFarmJob.date_created), BuildFarmJob.id)
- AFAICT PackageBuildSet is missing from __all__ (not TestPackageBuildSet, sorry). Pleaes check that.
Thanks for you good work and patience with me. ;-)
As discussed on mumble:
- Please make sure the indention is less confusing by using an intermediate variable for the states, e.g. "unfinished_ states" .
+ if status is None or status in [ NEEDSBUILD, BUILDING, SUPERSEDED] :
result_ set.order_ by(
Desc( BuildFarmJob. date_created) , BuildFarmJob.id)
+ BuildStatus.
+ BuildStatus.
+ BuildStatus.
- AFAICT PackageBuildSet is missing from __all__ (not TestPackageBuil dSet, sorry). Pleaes check that.
Thanks for you good work and patience with me. ;-)