瀏覽代碼

request uri

master
Andreas Demmelbauer 4 年之前
父節點
當前提交
e296cafbd6
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      ir-remote-timer.py

+ 3
- 3
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:


Loading…
取消
儲存