diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-22 15:03:29 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2014-04-22 15:03:29 +0000 |
commit | 484f1032224c87719459e334f936f145212c3cd9 (patch) | |
tree | 1c44783a6964e173810cfb54f5cccd5afa94be21 /lorrycontroller | |
parent | 6d6845ff49f04f1152db23c59c863f74a70e08c4 (diff) | |
download | lorry-controller-484f1032224c87719459e334f936f145212c3cd9.tar.gz |
Use proper boolean constants
Diffstat (limited to 'lorrycontroller')
-rw-r--r-- | lorrycontroller/startstopqueue.py | 4 |
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) |