[Pkg-debile-commits] [debile-web] 01/01: flake8 is wrongly suggesting to replace '== None' by 'is None'

Sylvestre Ledru sylvestre at alioth.debian.org
Fri Sep 13 09:22:47 UTC 2013


This is an automated email from the git hooks/post-receive script.

sylvestre pushed a commit to branch update-usuability
in repository debile-web.

commit 403929a31b0cfde430fb76191af1ecba61e851fc
Author: Debile master <debile at irill6.inria.fr>
Date:   Fri Sep 13 11:20:19 2013 +0200

    flake8 is wrongly suggesting to replace '== None' by 'is None'
---
 debileweb/blueprints/frontend.py |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/debileweb/blueprints/frontend.py b/debileweb/blueprints/frontend.py
index a0a142e..f20a712 100644
--- a/debileweb/blueprints/frontend.py
+++ b/debileweb/blueprints/frontend.py
@@ -86,9 +86,10 @@ def index():
     session = Session()
     active_jobs = session.query(Job)\
         .options(joinedload('machine'))\
-        .filter(Job.machine is not None)\
-        .filter(Job.finished_at is None)\
+        .filter(Job.machine != None)\
+        .filter(Job.finished_at == None)\
         .all()
+    machines = session.query(Machine).options(joinedload('jobs')).all()
     active_jobs_info = []
     for j in active_jobs:
         info = {}
@@ -99,7 +100,7 @@ def index():
         active_jobs_info.append(info)
 
     pending_jobs = session.query(Job)\
-        .filter(Job.assigned_at is None)\
+        .filter(Job.assigned_at == None)\
         .count()
 
     form = SearchPackageForm()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-debile/debile-web.git



More information about the Pkg-debile-commits mailing list