File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1168,7 +1168,7 @@ where
1168
1168
self . conn ( )
1169
1169
. execute (
1170
1170
"update collector_progress set start_time = statement_timestamp() \
1171
- where aid = $1 and step = $2 and end_time is null;",
1171
+ where aid = $1 and step = $2 and start_time is null and end_time is null;",
1172
1172
& [ & ( aid. 0 as i32 ) , & step] ,
1173
1173
)
1174
1174
. await
Original file line number Diff line number Diff line change @@ -1054,7 +1054,7 @@ impl Connection for SqliteConnection {
1054
1054
self . raw_ref ( )
1055
1055
. execute (
1056
1056
"update collector_progress set start = strftime('%s','now') \
1057
- where aid = ? and step = ? and end is null;",
1057
+ where aid = ? and step = ? and start is null and end is null;",
1058
1058
params ! [ & aid. 0 , & step] ,
1059
1059
)
1060
1060
. unwrap ( )
You can’t perform that action at this time.
0 commit comments