1 Commits

Author SHA1 Message Date
18a5cd6334 Improve boolean parameter parsing 2013-07-15 14:39:28 -04:00
3 changed files with 4 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ Prerequisites:
# Base dependencies
sudo apt-get install python-numpy python-scipy
nilmdb (1.8.0+)
nilmdb (1.8.2+)
Install:

View File

@@ -23,6 +23,7 @@ from nilmdb.server.serverutil import (
json_error_page,
cherrypy_start,
cherrypy_stop,
bool_param,
)
import nilmrun
import nilmrun.testfilter
@@ -77,6 +78,7 @@ class AppProcess(object):
def status(self, pid, clear = False):
"""Return status about a process. If clear = True, also clear
the log."""
clear = bool_param(clear)
if pid not in self.manager:
raise cherrypy.HTTPError("404 Not Found", "No such PID")
status = self.process_status(pid)

View File

@@ -61,7 +61,7 @@ setup(name='nilmrun',
long_description = "NILM Database Filter Runner",
license = "Proprietary",
author_email = 'jim@jtan.com',
install_requires = [ 'nilmdb >= 1.8.0',
install_requires = [ 'nilmdb >= 1.8.2',
'nilmtools >= 1.2.2',
'numpy',
'scipy',