Commit 2f088886 authored by nextime's avatar nextime

some typos

parent b31e04fa
...@@ -157,7 +157,7 @@ def statusParser(trigger, sun, restype='string'): ...@@ -157,7 +157,7 @@ def statusParser(trigger, sun, restype='string'):
else: else:
if not reverse: if not reverse:
ret=doQuery("SELECT MAX(active) from timers WHERE DMDOMAIN(timer_name, '"+str(tid[0])+"')=1") # at least one active? ret=doQuery("SELECT MAX(active) from timers WHERE DMDOMAIN(timer_name, '"+str(tid[0])+"')=1") # at least one active?
else else:
ret=doQuery("SELECT MIN(active) from timers WHERE DMDOMAIN(timer_name, '"+str(tid[0])+"')=1", reverse=True) # at least one off? ret=doQuery("SELECT MIN(active) from timers WHERE DMDOMAIN(timer_name, '"+str(tid[0])+"')=1", reverse=True) # at least one off?
except: except:
pass pass
...@@ -178,13 +178,13 @@ def statusParser(trigger, sun, restype='string'): ...@@ -178,13 +178,13 @@ def statusParser(trigger, sun, restype='string'):
else: else:
if not reverse: if not reverse:
ret=doQuery("SELECT MAX(active) from actions WHERE DMDOMAIN(action_name, '"+str(tid[0])+"')=1") # at least one active? ret=doQuery("SELECT MAX(active) from actions WHERE DMDOMAIN(action_name, '"+str(tid[0])+"')=1") # at least one active?
else else:
ret=doQuery("SELECT MIN(active) from actions WHERE DMDOMAIN(action_name, '"+str(tid[0])+"')=1", reverse=True) # at least one off? ret=doQuery("SELECT MIN(active) from actions WHERE DMDOMAIN(action_name, '"+str(tid[0])+"')=1", reverse=True) # at least one off?
except: except:
pass pass
elif (trigger.startswith("BOARDSTATUS ") or trigger.startswith("BOARDSTATUS:") # DEPRECATED, USE BOARDACTIVE elif (trigger.startswith("BOARDSTATUS ") or trigger.startswith("BOARDSTATUS:") or # DEPRECATED, USE BOARDACTIVE
trigger.startswith("BOARDACTIVE ") or trigger.startswith("BOARDACTIVE:")): trigger.startswith("BOARDACTIVE ") or trigger.startswith("BOARDACTIVE:")):
bname=trigger[12:].split() bname=trigger[12:].split()
if len(bname)>0: if len(bname)>0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment