瀏覽代碼

byte string if

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

+ 3
- 3
ir-remote-timer.py 查看文件

@@ -31,16 +31,16 @@ class Simple(resource.Resource):
def render_GET(self, request):
print(request)
statustext = ""
if request.uri == "/on":
if request.uri == b"/on":
statustext = "turn all projectors on ..."
turnAllProjectorsOn()
if request.uri == "/off":
if request.uri == b"/off":
statustext = "turn all projectors off ..."
turnAllProjectorsOff()
else:
statustext = ""
html = '<b>%s</b>' % statustext
html = '<b> %s </b>' % statustext
return html.encode('utf-8')

site = server.Site(Simple())


Loading…
取消
儲存