Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
domotikad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
domotika
domotikad
Commits
03118838
Commit
03118838
authored
Feb 07, 2014
by
nextime
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix GOTOSTEP condition_act
parent
2f365266
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
dmdb.py
domotika/db/dmdb.py
+2
-1
No files found.
domotika/db/dmdb.py
View file @
03118838
...
@@ -563,7 +563,8 @@ def getSequence(seqname):
...
@@ -563,7 +563,8 @@ def getSequence(seqname):
return
SequenceConf
.
find
(
where
=
[
'name=?'
,
seqname
],
limit
=
1
)
return
SequenceConf
.
find
(
where
=
[
'name=?'
,
seqname
],
limit
=
1
)
def
setNextStep
(
sname
,
st
):
def
setNextStep
(
sname
,
st
):
querystr
=
"UPDATE sequence_data SET step_done=1 WHERE step<"
+
str
(
st
)
+
" AND sequence_name='"
+
sname
+
"'"
#querystr="UPDATE sequence_data SET step_done=1 WHERE step<"+str(st)+" AND sequence_name='"+sname+"'"
querystr
=
"UPDATE sequence_data SET step_done=IF(position<"
+
str
(
st
)
+
",1,0) WHERE sequence_name='"
+
sname
+
"'"
return
Registry
.
DBPOOL
.
runOperation
(
querystr
)
return
Registry
.
DBPOOL
.
runOperation
(
querystr
)
def
getRunningSequences
():
def
getRunningSequences
():
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment