Download:
child 313:f06c71c163f4
parent 311:cdd183a85dd1
312:908be10494c7
Anton Shestakov <av6@dwimlabs.net>, Fri, 06 Oct 2017 16:24:27 +0800
viewer: no need to compare to True, fixes two E712 warnings as well

1 файлов изменено, 2 вставок(+), 2 удалений(-) [+]
candolint/handlers.py file | annotate | diff | comparison | revisions
--- a/candolint/handlers.py Fri Oct 06 16:22:57 2017 +0800
+++ b/candolint/handlers.py Fri Oct 06 16:24:27 2017 +0800
@@ -164,7 +164,7 @@
.select(*Check.get_light_fields())
.join(Change)
.where(Check.project == check.project)
- .where(Check.success == True)
+ .where(Check.success)
.where(Check.change != check.change)
.where(Change.branch == check.change.branch)
.where(Check.ordinal < check.ordinal)
@@ -177,7 +177,7 @@
.select(*Check.get_light_fields())
.join(Change)
.where(Check.project == check.project)
- .where(Check.success == True)
+ .where(Check.success)
.where(Change.branch == check.change.branch)
.order_by(Check.ordinal.desc()))
more = checks.where(Check.ordinal >= check.ordinal).count()