summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)