summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-22 15:03:29 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-04-22 15:03:29 +0000
commit484f1032224c87719459e334f936f145212c3cd9 (patch)
tree1c44783a6964e173810cfb54f5cccd5afa94be21
parent6d6845ff49f04f1152db23c59c863f74a70e08c4 (diff)
downloadlorry-controller-484f1032224c87719459e334f936f145212c3cd9.tar.gz
Use proper boolean constants
-rw-r--r--lorrycontroller/startstopqueue.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lorrycontroller/startstopqueue.py b/lorrycontroller/startstopqueue.py
index 58da2d0..fe36a43 100644
--- a/lorrycontroller/startstopqueue.py
+++ b/lorrycontroller/startstopqueue.py
@@ -30,7 +30,7 @@ class StartQueue(lorrycontroller.LorryControllerRoute):
logging.info('%s %s called', self.http_method, self.path)
statedb = self.open_statedb()
with statedb:
- statedb.set_running_queue(1)
+ statedb.set_running_queue(True)
if 'redirect' in bottle.request.forms:
bottle.redirect(bottle.request.forms.redirect)
@@ -47,7 +47,7 @@ class StopQueue(lorrycontroller.LorryControllerRoute):
logging.info('%s %s called', self.http_method, self.path)
statedb = self.open_statedb()
with statedb:
- statedb.set_running_queue(0)
+ statedb.set_running_queue(False)
if 'redirect' in bottle.request.forms:
bottle.redirect(bottle.request.forms.redirect)