Commit a14fc69c authored by Franco Lanza's avatar Franco Lanza

Fix timer_name position in CRONDOMAIN SQL query

parent 0d86eb59
...@@ -1297,7 +1297,8 @@ class domotikaService(service.Service): ...@@ -1297,7 +1297,8 @@ class domotikaService(service.Service):
sqlstring+="0" sqlstring+="0"
elif cact=='enable': elif cact=='enable':
sqlstring+="1" sqlstring+="1"
sqlstring+=" where DMDOMAIN('"+tid+"', timer_name)=1" sqlstring+=" where DMDOMAIN(timer_name, '"+tid+"')=1"
log.error(sqlstring)
dmdb.runOperation(sqlstring) dmdb.runOperation(sqlstring)
except: except:
pass pass
......
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