Commit c61ae2e8 authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Task: Fix resetRetryCount

is_present doesn't exist, and we want to reset the count for all tasks
anyway. It will start or not depending on the file presence, but we
don't need to care when reseting
parent de116e76
......@@ -263,7 +263,7 @@ void Task::createTable( sqlite::Connection* dbConnection )
void Task::resetRetryCount( MediaLibraryPtr ml )
{
static const std::string req = "UPDATE " + policy::TaskTable::Name + " SET "
"retry_count = 0 WHERE step != ? AND is_present != 0";
"retry_count = 0 WHERE step != ?";
sqlite::Tools::executeUpdate( ml->getConn(), req, parser::Task::ParserStep::Completed );
}
......
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