def getDetection(): logger.info("Received %s" %(request.url)) return json.dumps(active.getDetection())
def setDetection(): newStatus = request.args.get('status') logger.info("Received %s" %(request.url)) active.setDetection(newStatus) return json.dumps(active.getDetection())