From e296cafbd674f047a0d9c766efdbc5a78bb0b366 Mon Sep 17 00:00:00 2001 From: Andreas Demmelbauer Date: Fri, 5 Jun 2020 00:04:23 +0200 Subject: [PATCH] request uri --- ir-remote-timer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ir-remote-timer.py b/ir-remote-timer.py index ec2cea1..2eb9dc0 100644 --- a/ir-remote-timer.py +++ b/ir-remote-timer.py @@ -29,12 +29,12 @@ def turnAllProjectorsOff(): class Simple(resource.Resource): isLeaf = True def render_GET(self, request): - print(request.prepath) + print(request) statustext = "" - if request.prepath == "on": + if request.uri == "/on": statustext = "turn all projectors on ..." turnAllProjectorsOn() - if request.prepath == "off": + if request.uri == "/off": statustext = "turn all projectors off ..." turnAllProjectorsOff() else: